Move active element loses mouseout event in Internet Explorer

后端 未结 4 891
小蘑菇
小蘑菇 2020-12-10 03:31

In a library I am using I have the task of moving an element to the front of the dom when it is hovered over. (I make it bigger so I need to see it, then shrink it back when

4条回答
  •  一向
    一向 (楼主)
    2020-12-10 04:35

    I was able to get it working with nested divs and a mouseenter event on the parent:

    ... $('#frame').mouseenter(function() { $(".box").css("border-color", "black"); });

    Here's a working version using Raphael:

    http://jsfiddle.net/xDREx/

提交回复
热议问题