0
誰可以幫我一個忙,讓我的可拖動項目連接到可連接的可排序列表。我發現如果連接的可排序列表溢出了具有「overflow:auto」風格的div,則可拖動的項目不能被拖入它。這是一個錯誤嗎?任何人都請幫助我。 !在先進的感謝:-)jQuery可拖動 - 我無法拖動我的物品
<html>
<head>
<title>My MultiSelect</title>
<script type="text/javascript" src="http://quasipartikel.at/multiselect/js/jquery-1.4.2.min.js">
</script>
<script type="text/javascript" src="http://quasipartikel.at/multiselect/js/jquery-ui-1.8.custom.min.js">
</script>
<style>
ul{ border: solid 2px yellow; }
</style>
</head>
<body>
<div style="height: 100px; overflow:auto;">
please scroll to bottom to test bug<br/><br/><br/><br/>
<ul><li id="drag">draggable item</li></ul>
<ul id="sort">
<li>a</li>
<li>b</li>
</ul>
</div>
<script type="text/javascript">
$("#sort").sortable();
$("#drag").draggable({
connectToSortable: "#sort",
revert: 'invalid'
});
</script>
</body>
</html>