Mouseout and mouseleave not working

前端 未结 3 1379
臣服心动
臣服心动 2021-01-27 12:58

Hi I am using mouseout and mouseleave methods but both are not working. I tried to fix it but cant find the solution. My code looks fine, it has no err

3条回答
  •  逝去的感伤
    2021-01-27 13:41

    Instead of using live to bind events to functions, I used the jQuery methods for mouseover and mouseout. In this example, I set up a span within the containing div that shows when your mouse enters the div and hides when you leave the div.

    You could change the span to any element you would like to use, and style/position it with CSS if you like.

    Is this a viable solution for your problem?

    http://jsfiddle.net/Dpp8a/4/

提交回复
热议问题