In Firefox, if I just do a mousedown,mouseup (without move the mouse while the left button is clicked),the mouseup event will be fired. But if I move the mouse while theleft button is clicked,
the mouseup (alert) does'nthappened.
事发原因:
由文字选择动作引起的冲突,禁止浏览器选择文字动作:
IE: 使用js代码document.body.onselectstart =function(){ return false;}
firefox: 使用css样式 -moz-user-select:none;
chrome: 使用css样式 -webkit-user-select:none;
本文探讨了在Firefox浏览器中,特定鼠标操作导致的mouseup事件未触发的问题,并提供了针对IE、Firefox及Chrome浏览器的文字选择冲突解决方案。
207

被折叠的 条评论
为什么被折叠?



