如何实现table背景色随鼠标移动改变颜色?

代码:

<table onmouseover="this.style.backgroundColor='#ff0000'" onmouseout="this.style.backgroundColor='#ffffff'">
<tr><td>A</td><td>B</td></tr>
<tr><td>C</td><td>D</td></tr>
</table>
posted @ 2012-07-01 10:30  tangrongyue  Views(278)  Comments(0)    收藏  举报