<table width="368" border="0" cellspacing="1" cellpadding="1"> <tr> <td οnmοuseοver="this.style.background='#FBE17C';this.style.color='#000000'" οnmοuseοut="this.style.background='#FAF2B1';this.style.color='#FAF291'" align=middle height=18><span class="STYLE1"></span></td> <td bordercolor="#0066FF"> </td> </tr> <tr> <td bgcolor="#0066FF"><span class="STYLE1">333</span></td> <td> </td> </tr> </table>
其中主要是里边的这句话:
<td οnmοuseοver="this.style.background='#FBE17C';this.style.color='#000000'"
οnmοuseοut="this.style.background='#FAF2B1';this.style.color='#FAF291'"
align=middle height=18><span class="STYLE1"></span></td>
js实现表格上鼠标移行换色
最新推荐文章于 2020-12-21 15:53:04 发布