0
제 문제는 목록을 정렬 할 때 드롭 기능이 시작된다는 것입니다.jQuery droppable이 Z- 인덱스를 무시합니까?
JS
$(document).ready(function rt()
{
$("#div1").draggable();
$("#k1").sortable({ revert: '100' });
$('#droparea').droppable({ accept: 'li', drop: function() { alert('ssss'); } });
});
HTML
<div id="div1" style="z-index:5;">
<ul id="k1" style="width:350px; height:200px; background-color:#ffffff; margin:20px; padding:10px; border:1px solid #000000; ">
<li>One</li>
<li>two</li>
<li>three</li>
</ul>
</div>
<div id="droparea" style="position:absolute; top:0px; left:0px; width:100%; height:100%; background-color:#cccccc; z-index:1;"></div>
실시 예의 사전
http://www.jsfiddle.net/V9Euk/130/
Tabks. Peter
무엇이 문제입니까? 나는 당신이 무엇을하려고하는지, 무엇이 실패하고 있는지 정확히 알지 못합니다. –
안녕하세요, Hoerster, 내가 목록을 정렬하면 드롭 기능이 시작됩니다. 하지만 나는 뭔가를 떨어 뜨릴 때만 드롭을 시작하고 싶다. – Peter