【问题标题】:Raphael: mouseout not working in IE11Raphael:鼠标移出在 IE11 中不起作用
【发布时间】:2017-01-24 19:59:11
【问题描述】:

我注意到在 IE11 中,mouseout 没有激活我想要的功能。它在 Chrome、Firefox 和 Safari 中运行良好。有谁知道这是为什么以及解决方案是什么?

    wheel[segment].mouseout( myHoverOut.bind(null, segment) )
    icon[segment].mouseout( myHoverOut.bind(null, segment) )

完整代码:https://jsfiddle.net/8aue977o/

工作轮:(滚动到轮)https://www.uk-cpi.com/services/innovation-integrator

【问题讨论】:

    标签: javascript svg mouseevent raphael mouseout


    【解决方案1】:

    可以用纯JS,很简单:http://jsfiddle.net/qHfJD/76/

    <script>
    
    var myDiv = document.getElementById('foo');
    
    myDiv.onmouseout = function() { 
    alert('left');
    }
    
    </script>
    

    【讨论】:

      猜你喜欢
      • 2015-03-07
      • 2022-09-29
      • 2011-09-15
      • 1970-01-01
      • 1970-01-01
      • 2020-08-07
      • 1970-01-01
      • 1970-01-01
      • 2015-12-01
      相关资源
      最近更新 更多