我有jQuery Ui可拖动元素的样式问题。 这里我有什么jQuery ui可拖动元素获取其他可拖动元素
就像你看到的,我有两个可投放区域,在每个区域中的元素都是可拖动,并可以将它从一个块放入,元素到另一个 唯一的问题,即当我将元素从顶部块拖动到块下面时,拖动元素在可拖放元素下面是元素,但是当我从底部拖动到顶部时,不存在这样的问题。
这里是拖动
$(".slide").draggable({
// brings the item back to its place when dragging is over
revert:true,
// once the dragging starts, we decrease the opactiy of other items
// Appending a class as we do that with CSS
start: function(event, ui) { $(this).css("z-index", a++); },
drag:function() {
$(this).removeClass('droped');
},
// adding the CSS classes once dragging is over.
stop:function() {
$(this).addClass('droped');
},
zIndex: 10000,
snapMode: "inner"
});
任何人可以帮助我,请我的工作,它已经2天的代码,并不能弄清楚是什么问题,我已经试图改变Z-每个块的索引位置,但没有结果;
你拨弄不工作,但你可以尝试给的z-index你试图移动,也许您在下面想要的块太大 – Randy
删除'Z-索引:来自'ul.book_list'的[2] [小提琴](http://jsfiddle.net/sameer_kc/zbo7g5nz/3/) – Sami
请不要绕开质量过滤器。这不是你的第一个问题,[你之前直接在代码中包含代码](http://stackoverflow.com/questions/27633120/website-with-scrollmagic-pins)。 – BoltClock