<table width="300" border="0" cellspacing="10" cellpadding="0" bgcolor="#9966FF"> <tr> <td bgcolor="#0066FF" onmouseover="this.style.background='#FF0000'" onmouseout="this.style.background='#0066FF'" > </td> <td bgcolor="#0066FF" onmouseover="this.style.background='#FF0000'" onmouseout="this.style.background='#0066FF'"> </td> <td bgcolor="#0066FF" onmouseover="this.style.background='#FF0000'" onmouseout="this.style.background='#0066FF'"> </td> </tr></table>
两种做法 一种是利用a 的属性 a:link,a:visited{display:block; width:50px; heght:50px} a:hover{blackground:blue} 一种是js