Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQueryUI有效教程_Jquery_Jquery Ui_Resources_Drag And Drop_Jquery Ui Draggable - Fatal编程技术网

jQueryUI有效教程

jQueryUI有效教程,jquery,jquery-ui,resources,drag-and-drop,jquery-ui-draggable,Jquery,Jquery Ui,Resources,Drag And Drop,Jquery Ui Draggable,有人知道详细有效的jQueryUI1.7教程吗? 我只是无法单独使用演示页面 我想不出是什么原因造成的。。 只需执行('div#item').draggable() 谢谢我喜欢这个: 还有,试试看 $('div#item').draggable(): 要使用jQuery draggable,您需要: 在页面中包括jquery.js、jquery.ui.core.js和jquery.draggable 声明某些内容 在css中设置div的宽度和高度:#item{width:100px;heig

有人知道详细有效的jQueryUI1.7教程吗? 我只是无法单独使用演示页面

我想不出是什么原因造成的。。 只需执行
('div#item').draggable()

谢谢

我喜欢这个:

还有,试试看

$('div#item').draggable():

要使用jQuery draggable,您需要:

  • 在页面中包括jquery.js、jquery.ui.core.js和jquery.draggable
  • 声明
    某些内容
  • 在css中设置div的宽度和高度:
    #item{width:100px;height:100px;}
  • 调用jQuery draggable()扩展名:
    $('div#item').draggable()
  • 当然,2和3可以一起完成:

    <div id="item" style="width: 100px; height: 100px;">Some content</div>
    
    一些内容
    
    我的问题中忘记了美元符号:D…对不起。无论如何,谢谢你。