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
Method 1: Use the lsb_release utility The lsb_rel...
Table of contents Overview 1. How to animate a DO...
Table of contents 2. Comma operator 3. JavaScript...
This article introduces the sample code of CSS3 c...
Preface I believe that everyone has had a simple ...
Preface While browsing GitHub today, I found this...
Table of contents Mistake 1: Too many columns of ...
Sometimes you may need to modify or add exposed p...
About Event: MySQL 5.1 began to introduce the con...
<input> is used to collect user information ...
Starting from this section, we will explain the i...
Pull the image root@EricZhou-MateBookProX: docker...
Preface First, let me introduce Keepalived, which...
Table of contents background accomplish 1. Encaps...
This article example shares the specific code for...