![](/img/trans.png)
[英]JQuery UI Sortable - Nested Sortable Divs connectWith
[英]jquery ui connectwith ul in div
我在div中有一個jQuery UI列表。 而且我無法與div中的另一個列表建立連接。 請幫忙。
並排有兩個列表。 每個div在他自己的div上可排序的作品。 但是您不能將其拖到其他列表。
The binding information in javascript:
$( "#itemsHolder" ).sortable({
connectWith: "#takenHolder",
placeholder: "ui-state-highlight",
});
$( "#takenHolder" ).sortable({
connectWith: "#itemsHolder",
placeholder: "ui-state-highlight",
});
有人可以解決嗎?
問題是您的.item
具有float
屬性。 connectWith
不適用於浮動元素。
只需移除float: left;
來自.item
。 參見小提琴: http : //jsfiddle.net/hhxpw882/2/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.