使用Jquery的drop and drag方面的插件是,在Firefox 和chrome、IE8下都非常正常,但是在IE6 IE7下,一拖动,就会很乱,出现了对象拖动不准确的现象,查了下资料,发现时因为IE里的事件冒泡在作怪。
解决办法:
$('.sortable').bind('movedown',function(event){
event.stopPropagation();
});
再进行Sortable就没有问题了
When i was using the sortable ,droppable or darggable of jquery,it not worked in ie6/ie7.then i found it cause by the event propagation.i google it and find the way to slove it.before you do drop and drag ,you can do one function to stop propagation on the object.example:
$('.sortable').bind('movedown',function(event){
event.stopPropagation();
});
$('.sortable.sortable();
then,it is working.
本站技术交流群:24735919,欢迎大家进群交流探讨!
近期评论