想用sortable和droppable做一个排序列表,列表的项可以拖到另一个回收区域实现删除项的效果排序列表弄出来了,但是回收效果做不出,
$(".sort").sortable({ opacity: 0.5, cursorAt: { top: 60, left: 70} });$(".sort").disableSelection();$("#recycle_bin").droppable({
accept: "#recycle_bin",
activeClass: "ui-state-hover",
hoverClass: "ui-state-active",
drop: function (event, ui) {
alert("Dropped");
}
});
请问是怎么弄的?UI
$(".sort").sortable({ opacity: 0.5, cursorAt: { top: 60, left: 70} });$(".sort").disableSelection();$("#recycle_bin").droppable({
accept: "#recycle_bin",
activeClass: "ui-state-hover",
hoverClass: "ui-state-active",
drop: function (event, ui) {
alert("Dropped");
}
});
请问是怎么弄的?UI
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货