JS中onmouseout onmouseleave究竟有何区别?

来源:百度知道 编辑:UC知道 时间:2024/09/24 09:19:48
RT,希望高人给予详细解答,谢谢!

onMouseOut就是鼠标移出规定范围

除了你说的几个还有:

onmouseenter Fires when the user clicks the object with either mouse button.

onmouseleave Fires when the user moves the mouse pointer outside the boundaries of the object.

onmousemove Fires when the user moves the mouse over the object.

onmouseup Fires when the user releases a mouse button while the mouse is over the object.

onmousewheel Fires when the wheel button is rotated.