4
拖我有一個dragable項目,但它是在其他HTML元素,當我拖動它,甚至我設置.item_dragable { cursor: move; z-index: 2147483646; }
和事件dragable:元素不能擁有的z-index最高時的jQuery
jQuerydragable.draggable({
cancel: "a.ui-icon", // clicking an icon won't initiate dragging
revert: "invalid", // when not dropped, the item will revert back to its initial position
containment: "document",
helper: "clone",
cursor: "move",
zIndex: 2147483647
});
什麼錯是嗎?我用的是最新的jQuery和jQuery UI的
感謝
您是否檢查過父元素?請提供一個jsfiddle或工作示例。 – jtheman
我在另一個元素中的可拖動項,是它的父指向的z索引辯護元素? – user1912285
某些HTML代碼會幫助 – wakooka