首页课程jquery趣味课堂 (快速入门版)鼠标滑过事件

鼠标滑过事件

目录列表

mouseenter()方法

当鼠标指针穿过元素时,会发生 mouseenter 事件。

mouseenter() 方法触发 mouseenter 事件,或规定当发生 mouseenter 事件时运行的函数:

实例

6QUM89NXWY`M3YDS[M)GL2J.png

请在以下空格输入答案

当鼠标指针穿过元素时事件。

mouseleave()方法

当鼠标指针离开元素时,会发生 mouseleave 事件。

mouseleave() 方法触发 mouseleave 事件,或规定当发生 mouseleave 事件时运行的函数:

实例

T4O%{MPMY_S3~2XJQZH)RW8.png

请在以下空格输入答案

当鼠标指针离开元素时,会发生事件。