The difference between MouseLeave and mouseout in jquery
$ ("Li"). each (function (i) {
Delete the mouse across the display and hide
$ (this). MouseOver (function () {
$ (this). Find (". Del"). FadeIn (10);
})
$ (this). MouseLeave (function () {
$ (this). Find (". Del"). FadeOut (10);
})
})
If the above code is not MouseLeave but mouseout, you will find that you have not left the class name. del this div is sometimes flashing. That's because you may have left the sub-element of the Div, so you'll start the Mouseout event. The difference between the specific MouseLeave and mouseout is mainly the following two points:
1. The Mouseout event is triggered whenever the mouse pointer leaves the selected element or any child element.
2. The MouseLeave event is triggered only when the mouse pointer leaves the selected element.
---restore content ends---
MouseLeave and Mouseout differences