我是靠谱客的博主 瘦瘦戒指,最近开发中收集的这篇文章主要介绍JQuery标签上的鼠标事件,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述


onmouseover:

                 鼠标滑入,冒泡。

onmouseout:

                 鼠标滑出,冒泡。

onmouseenter:

                 鼠标滑入,不冒泡。

onmouseleave:

                 鼠标滑出,不冒泡。

 

onmouseenter、onmouseoverFires 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标签上的鼠标事件所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(81)

评论列表共有 0 条评论

立即
投稿
返回
顶部