Home  >  Article  >  Web Front-end  >  The jQuery plug-in realizes the color change of alternate rows in the table and changes the color of the row highlighted by the mouse_jquery

The jQuery plug-in realizes the color change of alternate rows in the table and changes the color of the row highlighted by the mouse_jquery

WBOY
WBOYOriginal
2016-05-16 17:21:501080browse

js code:
The jQuery plug-in realizes the color change of alternate rows in the table and changes the color of the row highlighted by the mouse_jquery
css code:

Copy code The code is as follows:

tr.alt td {
background:#ecf6fc; /*This line will add a background color to all tr*/
}
tr.over td {
background:#bcd4ec; /*This will be the background color of the mouse highlighted line*/
}
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