Home >Web Front-end >HTML Tutorial >How to trigger JS when the mouse moves over a div block? _html/css_WEB-ITnose
The area size of a link is the size of the text display area inside it. Just write onmouseover as a div event.
a is placed in a div.
onmouseover is written as a div
You didn’t make it clear which DIV and what is the order of the code.
Use jQuery to set an id to the target div, and then execute the statement $("#id").hover(function(){},funtion(){})