实例如下:
div横向拖拽排序 body,div{ padding: 0px; margin: 0px; } .box { margin-left: 15px; padding : 10px; padding-right: 0px; width : 810px; height : 150px; border : blue solid 1px; } .horizontal-div{ float : left; margin-right: 10px; border: #000 solid 1px; text-align: center; width : 150px; height : 150px; } .horizontal-div-dash { position: absolute; width: 150px; height: 150px; margin-right: 10px; border: 1px dashed blue; background: #ececec; opacity: 0.7; } .dash { float : left; width: 150px; height: 150px; margin-right: 10px; border: 1px dashed #f00; }; div横向拖拽排序 div1 div2 div3 div4 div5
以上这篇jQuery实现div横向拖拽排序的简单实例就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持考高分网。



