Problems with mouseout event

后端 未结 6 1397
忘了有多久
忘了有多久 2021-02-09 15:11

I\'m using JavaScript to hide an image and show some text thats hidden under it. But, when the text is shown if you scroll over it, it fires the mouseout event on the container,

6条回答
  •  情歌与酒
    2021-02-09 15:23

    Try using onmouseenter instead of onmouseover and onmouseleave instead of onmouseout.

提交回复
热议问题