概述
onmouseover: 鼠标滑入,冒泡。 |
onmouseout: 鼠标滑出,冒泡。 |
onmouseenter: 鼠标滑入,不冒泡。 |
onmouseleave: 鼠标滑出,不冒泡。 |
onmouseenter、onmouseover: Fires when the user moves the mouse pointer into the object.
onmouseenter fires only if the mouse pointer is outside the boundaries of the object and the user moves the mouse pointer inside the boundaries of the object. If the mouse pointer is currently inside the boundaries of the object, for the event to fire, the user must move the mouse pointer outside the boundaries of the object and then back inside the boundaries of the object.
Unlike the onmouseover event, the onmouseenter event does not bubble. In other words, the onmouseenter event does not fire when the user moves the mouse pointer over elements contained by the object, whereas onmouseover does fire.
onmouseleave、onmouseout: Fires when the user moves the mouse pointer outside the boundaries of the object.
onmouseleave fires only if the mouse pointer is inside the boundaries of the object and the user moves the mouse pointer outside the boundaries of the object. If the mouse pointer is currently outside the boundaries of the object, for the event to fire, the user must move the mouse pointer inside the boundaries of the object and then back outside the boundaries of the object.
最后
以上就是瘦瘦戒指为你收集整理的JQuery标签上的鼠标事件的全部内容,希望文章能够帮你解决JQuery标签上的鼠标事件所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复