1
下面是我将表格行绑定为可拖动的代码。但拖动项目出现在分离器下方(http://methvin.com/splitter/splitter.js)此问题似乎与z-index
一致。我尝试了多种方式来设置拖动项目的z-index
。但是,这似乎并不奏效。当鼠标悬停在桌子上时触发bindDragAndDrop
方法。有人能指出我可能会遇到什么问题吗?jquery ui可拖动的z-index问题
function bindDragAndDrop(){
var table = $('TABLE .dataTable');
table.find('TR TD.columnClass').bind('mousedown', function() {
table.disableSelection();
}).bind('mouseup', function() {
table.enableSelection();
}).draggable({
helper: function(event) {
return $('<div div="dragDiv" class="drag-table-item"><table></table></div>').find('table').append($(event.target).closest('tr').clone())
.end().insertAfter(table);
},
cursorAt: {
left: -5,
bottom: 5
},
cursor: 'move',
distance: 10,
delay: 100,
scope: 'cart-item',
revert: 'invalid'
});
}
你好,这是很难帮助你没有一个活生生的例子。你可以使用以下设置你的问题:http://jsfiddle.net?几个星期前我遇到了这样的问题,并且我使用一个自定义帮助器设置了最大的页面z-index – sdespont 2012-07-07 17:05:32