将鼠标悬停在Jquery中的v / s悬停 [英] Mouseover v/s hover in Jquery
问题描述
这个问题是与信息有关的。即时通讯新的jQuery。我在HTML& CSS。
Hover& amp; amp;在Jquery中移植鼠标。
当它们悬停在元素上时,它们都不是被激活的。
mouseover()函数专门绑定到mouseover事件。对于只在鼠标穿过边界进入元素时才关心的情况,以及在离开时不太在意会发生什么情况。当您想要在某个元素上触发事件时,它也是调用的函数。 解释从: This question is info related. Im new to jquery. I am pretty experienced in HTML & CSS. What is the difference between Hover & Mouseover in Jquery.
Ain't they both activated when hovering over an element. The hover() function is more high level - it's built to call functions to handle both a mouseenter event and a mouseleave event. It's very convenient for a UI element that has a hover and normal state (e.g. a button.) The mouseover() function specifically binds to the mouseover event. It's best for situations where you only care when the mouse has crossed the border into an element and you don't really care what happens if it leaves. It's also the function to call when you want to trigger the event on some element. EXPLANATION FROM:
http://www.quora.com/jQuery/What-is-the-difference-between-the-hover-and-mouseover-functions 这篇关于将鼠标悬停在Jquery中的v / s悬停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
http://www.quora.com/jQuery/What-is-the-difference-between-the-hover-and-鼠标悬停功能