如何实现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>
代码:
<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>