$('#dragDiv').mouseup(function(){
alert(bOut);
});chrome下鼠标离开层dragDiv后松开没反应,ie下可以,何解

解决方案 »

  1.   

    可以啊。。当我把它改为alert('bOut');这样测试的时候2个浏览器输出的结果一样。。
      

  2.   

    这要看你的div的写法了,可以贴出来吗?
      

  3.   

    按f12 点console 有没有错误提示?
      

  4.   

    有提示:event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
    这是什么原因
      

  5.   

    找到原因了,jquery更新了提示没了还是弹不出对话框
      

  6.   

    mouseup 的对象变了,LZ可以看看如下代码<!Doctype html>
    <html>
    <head>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript">
    $(function(){
    $(".test2").mouseup(function(event){
    alert("test2");
    event.stopPropagation()
    })
    $(".test1").mouseup(function(){
    alert("test1")
    })
    })
    </script>
    </head>
    <body>
    <div class="test1" style="background: red; width: 100px; height: 100px;">
    <div class="test2" style="background: black; width: 50px; height: 50px;">
    </div>
    </div>
    </body>
    </html>
      

  7.   

    内层可以拖拉,拉到外层边界时停止,鼠标可以继续移动到外层外面,释放左键要弹出对话框,ie下可以,chrome失效
    http://stackoverflow.com/questions/9310259/jquery-mousedown-mouseup-in-chrome-safari-on-windows
    这篇帖子也是同样问题
      

  8.   

    应该是chrome下,鼠标移出点击层,层的焦点失去,mouseup失效