- $els.sortable({
- items: '> dl',
- handle: 'H3', //这里是关键: handle 指定拖动的位置
- cursor: 'move',
- //cursorAt: { top: 2, left: 2 },
- //opacity: 0.8,
- //helper: 'clone',
- appendTo: 'body',
- //placeholder: 'clone',
- //placeholder: 'placeholder',
- connectWith: els,
- start: function(e,ui) {
- ui.helper.css("width", ui.item.width());
- },
- change: sortableChange,
- update: sortableUpdate
- });
仿GOOGLE自定义桌面,用Jquery ui 实现
最新推荐文章于 2022-08-07 13:57:06 发布