案例:jQuery UI案例     状态:可编辑再运行    进入横版
AخA
 
1
<!doctype html>
2
<html lang="en">
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 拖动(Draggable) - 光标样式</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
  #draggable, #draggable2, #draggable3 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
12
  </style>
13
  <script>
14
  $(function() {
15
    $( "#draggable" ).draggable({ cursor: "move", cursorAt: { top: 56, left: 56 } });
16
    $( "#draggable2" ).draggable({ cursor: "crosshair", cursorAt: { top: -5, left: -5 } });
17
    $( "#draggable3" ).draggable({ cursorAt: { bottom: 0 } });
18
  });
19
  </script>
20
</head>
21
<body>
22
 
23
<div id="draggable" class="ui-widget-content">
24
  <p>我总是在中间(相对于鼠标)</p>

 运行结果 
 北美留学生论坛