用A对象模拟的单元格变色效果
加入如下代码到head区域 <style> .ChangeColor TD A {BACKGROUND-COLOR: #FFFFFF; COLOR: #397594; width:100%;text-decoration: none;height:20px;} .ChangeColor TD A:hover {BACKGROUND-COLOR: #ff9966; COLOR: #428EFF; width:100%;text-decoration: none;height:20px} </style>
加入如下代码到body区域 <table class=ChangeColor style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 cellPadding=0 width=50% bgColor=#ffffff border=1> <tr> <td><a href="#">变色</a></td> <td><a href="#">变色</a></td> </tr> <tr> <td><a href="#">变色</a></td> <td><a href="#">变色</a></td> </tr> </table>