Home >Web Front-end >JS Tutorial >CSS mouse response event process, movement, click example introduction_javascript skills

CSS mouse response event process, movement, click example introduction_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:23:292261browse

Several types of mouse trigger CSS events.
Description:
onMouseDown triggers when the mouse is pressed
onMouseOver triggers when the mouse passes over
onMouseUp triggers when the mouse is pressed and released
onMouseOut triggers when the mouse moves out
onMouseMove triggers when the mouse moves

Copy code The code is as follows:



CSS mouse response event


Control the color change of every other row in the table:
Simple application:


Add CSS file reference:
Copy code The code is as follows:

< link id="cssStyle" rel="stylesheet" type="text/css" href="../style.css" />
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn