鼠标移动到表格内 |
放在表格代码的<tr>内就可以:onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#CCCCFF'"
如:<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#CCCCFF'">
博客介绍了在表格代码的<tr>内添加鼠标事件的方法,通过设置onmouseout和onmouseover属性,可实现鼠标移出和移入时表格行背景颜色的变化,如给出的示例代码所示。
鼠标移动到表格内 |
放在表格代码的<tr>内就可以:onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#CCCCFF'"
如:<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#CCCCFF'">
1005

被折叠的 条评论
为什么被折叠?