Use pure CSS to change the background color of a row when the mouse passes over it to indicate that the row is in focus: <html> <head> <meta charset="utf-8"/> <title>change</title> <style type="text/css"> tr.change:hover { background-color:#00FF00 } </style> </head> <body> <h1>Change color when the mouse is stopped</h1> <table width="80%" border="1" align="center"> <tr class="change"> <td> </td> <td> </td> </tr> <tr class="change"> <td> </td> <td> </td> </tr> </table> </body> </html> The above is what I introduced to you about how to change the color of the entire row (tr) when the mouse stops in HTML. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
<<: A brief analysis of JS original value and reference value issues
>>: In-depth study of MySQL multi-version concurrency control MVCC
Because the docker daemon needs to bind to the ho...
Click here to return to the 123WORDPRESS.COM HTML ...
The day before yesterday, I encountered a problem...
Table of contents 1. Always use key in v-for loop...
As the domestic network environment continues to ...
Adobe Brackets is an open source, simple and powe...
illustrate: Today, when continuing the last offic...
Original code: center.html : <!DOCTYPE html>...
Table of contents 1: Build webpack 2. Data hijack...
Background - Online Alert An online server issued...
This article example shares the specific code of ...
Table of contents 1. Database design 2. Front-end...
Table of contents Overview Application scenarios ...
In this chapter, we will start to operate redis i...
1. The organizational structure of the hypertext d...