案例:jQuery UI案例     状态:可编辑再运行    进入横版
AخA
 
1
<!doctype html>
2
<html lang="en">
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 排序(Sortable) - 放置占位符</title>
6
  <link rel="stylesheet" href="/css/jqu1.10.4/jquery-ui.min.css">
7
  <script src="/js/jqu/jquery.min1.10.2.js"></script>
8
  <script src="/js/jqu/jquery-ui.min1.10.4.js"></script>
9
  <link rel="stylesheet" href="jqueryui/style.css">
10
  <style>
11
  #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
12
  #sortable li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; height: 1.5em; }
13
  html>body #sortable li { height: 1.5em; line-height: 1.2em; }
14
  .ui-state-highlight { height: 1.5em; line-height: 1.2em; }
15
  </style>
16
  <script>
17
  $(function() {
18
    $( "#sortable" ).sortable({
19
      placeholder: "ui-state-highlight"
20
    });
21
    $( "#sortable" ).disableSelection();
22
  });
23
  </script>
24
</head>

 运行结果 
 北美留学生论坛