案例: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
  #sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 120px; }
12
  </style>
13
  <script>
14
  $(function() {
15
    $( "#sortable1, #sortable2" ).sortable().disableSelection();
16
 
17
    var $tabs = $( "#tabs" ).tabs();
18
 
19
    var $tab_items = $( "ul:first li", $tabs ).droppable({
20
      accept: ".connectedSortable li",
21
      hoverClass: "ui-state-hover",
22
      drop: function( event, ui ) {
23
        var $item = $( this );
24
        var $list = $( $item.find( "a" ).attr( "href" ) )

 运行结果 
 北美留学生论坛