jQuery拖拽排序插件制作拖拽排序效果(附源码下载

使用jquery拖拽排序插件制作拖拽排序效果是一款非常实用的鼠标拖拽布局插件,在网站上有时也会用的到,今天小编给大家分享jQuery拖拽排序插件制作拖拽排序效果,需要的朋友参考下吧

使用jquery拖拽排序插件制作拖拽排序效果是一款非常实用的鼠标拖拽布局插件。效果图如下:

jQuery拖拽排序插件制作拖拽排序效果(附源码下载

效果演示         源码下载

html代码:

<h1>水平拖拽</h1> <div> <div><span>1</span></div> <div><span>2</span></div> <div><span>3</span></div> <div><span>4</span></div> <div><span>5</span></div> </div> <script src="https://www.jb51.net/js/jquery-1.11.3.min.js"></script> <script src="https://www.jb51.net/js/jquery.dad.min.js"></script> <script> $(function(){ $('.demo').dad(); }); </script> <!-- 以下信息与演示无关,可不必理会 --> <style> body { margin: 0; border-left: 200px solid #ccc;} h1 { width: 1000px; margin: 40px auto; font: 32px "Microsoft Yahei";} .demo { width: 1000px; margin: 0 auto;} .menu { position: absolute; left: 0; top: 0; bottom: 0; width: 200px; padding-top: 100px; font-family: Consolas,arial,"宋体"; background-color: #ccc;} .menu a { display: block; height: 40px; margin: 0 0 1px 2px; padding-left: 10px; line-height: 40px; font-size: 14px; color: #333; text-decoration: none;} .menu a:hover { background-color: #eee;} .menu .cur { color: #000; background-color: #fff !important;} .thead { width: 728px; height: 90px; margin: 0 auto; border-bottom: 40px solid transparent;} </style> <div> <a href="https://www.jb51.net/index.html">1、水平拖放</a> <a href="https://www.jb51.net/index2.html">2、垂直拖放</a> <a href="https://www.jb51.net/index3.html">3、多行拖放</a> <a href="https://www.jb51.net/index4.html">4、指定拖动区域</a> <a href="https://www.jb51.net/index5.html">5、回调函数</a> <a href="https://www.jb51.net/index6.html">6、允许/禁止拖放</a> <a href="https://www.jb51.net/index7.html">7、仿垃圾篓</a> <a href="https://www.jb51.net/index8.html">8、仿购物车</a> </div>

以上所述是小编给大家介绍的jQuery拖拽排序插件制作拖拽排序效果(附源码下载),希望对大家有所帮助!

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wgypyx.html