IE中的Jquery多级列表问题 [英] Jquery multilevel list problem in IE
问题描述
首先抱歉我的英语...
first of all sorry about my English...
好吧,我尝试创建一个可排序的问题/答案列表,它在FF中完美运行但不在IE浏览器。在IE中,当我尝试对答案进行排序(第二级li)时,其问题和同一组答案会以一种奇怪的方式与所选问题一起移动。
Well, I try to create a sortable list of questions/answers and it works perfectly in FF but not in IE. In IE, when I try to sort an answer (second level li) the its question and the same group answers moves together with the selected question in a strange way.
< a href =http://jsfiddle.net/eFDWw/17/ =nofollow>示例
如果您有任何想法请让我知道。
提前致谢!
If you have any idea please let me know. Thanks in advance!
推荐答案
添加此代码也应该有效
$('.answer').mousedown( function(e){ return false; } );
这将停止mousedown事件的冒泡效果,以达到也可排序的父元素。
This will stop the bubbling effect of the mousedown event to reach the parent element that is also sortable.
同样的事情可以用
$('.answer').mousedown( function(e){ e.stopPropagation(); } );
示例 http://jsfiddle.net/eFDWw/20/
这篇关于IE中的Jquery多级列表问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!