实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
AخA
 
1
<!doctype html>
2
<html lang="en">
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 缩放(Resizable) - 延迟开始</title>
6
  <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
7
  <script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
8
  <script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
9
  <link rel="stylesheet" href="jqueryui/style.css">
10
  <style>
11
  #resizable, #resizable2 { width: 150px; height: 150px; padding: 0.5em; }
12
  #resizable h3, #resizable2 h3 { text-align: center; margin: 0; }
13
  </style>
14
  <script>
15
  $(function() {
16
    $( "#resizable" ).resizable({
17
      delay: 1000
18
    });
19
 
20
    $( "#resizable2" ).resizable({
21
      distance: 40
22
    });
23
  });
24
  </script>
25
</head>
26
<body>
27
 
28
<h3 class="docs">时间延迟 (ms):</h3>
29
<div id="resizable" class="ui-widget-content">
30
  <h3 class="ui-widget-header">时间</h3>
31
</div>
32
 
33
<h3 class="docs">距离延迟 (px):</h3>
34
<div id="resizable2" class="ui-widget-content">
35
  <h3 class="ui-widget-header">距离</h3>
36
</div>
37
 
38
 
39
</body>
40
</html>