不论鼠标指针穿过被选元素或其子元素,都会触发onmouseover 事件。 例:li有mouseover事件,它有子元素a,经过a时也会触发onmouseover 只有在鼠标指针穿过被选元素时,才会触发 mouseenter 事件。 注意:onmouseenter和onmouseleave配对 ———————————————— 原文链接:https://blog.csdn.net/lyxuefeng/article/details/82391062 |
|
来自: 学习妄长生 > 《JavaScript》