jQuery拖拽排序插件制作拖拽排序效果(附源碼下載)
更新時(shí)間:2016年02月23日 09:22:48 作者:愛(ài)上程序猿
使用jquery拖拽排序插件制作拖拽排序效果是一款非常實(shí)用的鼠標(biāo)拖拽布局插件,在網(wǎng)站上有時(shí)也會(huì)用的到,今天小編給大家分享jQuery拖拽排序插件制作拖拽排序效果,需要的朋友參考下吧
使用jquery拖拽排序插件制作拖拽排序效果是一款非常實(shí)用的鼠標(biāo)拖拽布局插件。效果圖如下:
html代碼:
<h1>水平拖拽</h1> <div class="demo"> <div class="item item1"><span>1</span></div> <div class="item item2"><span>2</span></div> <div class="item item3"><span>3</span></div> <div class="item item4"><span>4</span></div> <div class="item item5"><span>5</span></div> </div> <script src="js/jquery-1.11.3.min.js"></script> <script src="js/jquery.dad.min.js"></script> <script> $(function(){ $('.demo').dad(); }); </script> <!-- 以下信息與演示無(wú)關(guān),可不必理會(huì) --> <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 class="menu"> <a class="cur" href="index.html">1、水平拖放</a> <a href="index2.html">2、垂直拖放</a> <a href="index3.html">3、多行拖放</a> <a href="index4.html">4、指定拖動(dòng)區(qū)域</a> <a href="index5.html">5、回調(diào)函數(shù)</a> <a href="index6.html">6、允許/禁止拖放</a> <a href="index7.html">7、仿垃圾簍</a> <a href="index8.html">8、仿購(gòu)物車</a> </div>
以上所述是小編給大家介紹的jQuery拖拽排序插件制作拖拽排序效果(附源碼下載),希望對(duì)大家有所幫助!
相關(guān)文章
jquery處理頁(yè)面彈出層查詢數(shù)據(jù)等待操作實(shí)例
這篇文章主要介紹了jquery處理頁(yè)面彈出層查詢數(shù)據(jù)等待操作,實(shí)例分析了jquery實(shí)現(xiàn)等待效果的技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下2015-03-03

jquery eval解析JSON中的注意點(diǎn)介紹
在JS中將JSON的字符串解析成JSON數(shù)據(jù)格式,一般有兩種方式:使用eval()函數(shù)、使用Function對(duì)象來(lái)進(jìn)行返回解析,下面有個(gè)示例,感興趣的朋友可以參考下
2013-08-08 
jquery左邊浮動(dòng)到一定位置時(shí)顯示返回頂部按鈕
這篇文章主要介紹通過(guò)jquery實(shí)現(xiàn)左邊浮動(dòng)到一定位置時(shí)顯示返回頂部按鈕的效果,需要的朋友可以參考下
2014-06-06 
jQuery 1.9移除了$.browser可以使用$.support來(lái)替代
這篇文章主要介紹jQuery 1.9 移除了 $.browser 的替代方法,需要的朋友可以參考下
2014-09-09