Starting from today, the tutorials for helping customers (www.bkjia.com) have published some special effects on the mouse. This article is "CSS tips for achieving the effect of changing the background of the mouse". let's look at the instance Code directly.
<HTML>
<HEAD>
<TITLE> LIEHUO.NET </ TITLE>
<style type = "text / css">
.cl1 {background: olive}
.cl2 {background: white}
</ style>
</ HEAD>
<body>
<table>
<tr onMouseover = "this.className = 'cl1';" onMouseout = "this.className = 'cl2'">
<td> Home for Helpers </ td>
<td> LIEHUO.NET </ td>
</ tr>
<tr onMouseover = "this.className = 'cl1';" onMouseout = "this.className = 'cl2'">
<td> Home for Helpers </ td>
<td> LIEHUO.NET </ td>
</ tr>
<tr onMouseover = "this.className = 'cl1';" onMouseout = "this.className = 'cl2'">
<td> Home for Helpers </ td>
<td> LIEHUO.NET </ td>
</ tr>
<tr onMouseover = "this.className = 'cl1';" onMouseout = "this.className = 'cl2'">
<td> Home for Helpers </ td>
<td> LIEHUO.NET </ td>
</ tr>
</ table>
</ body>
</ HTML>
Tip: You can modify the code and run it again!
============== ↑ Article display ↑ ==============