在单元格中加入 这句
onMouseOver ="this.style.backgroundColor='DFDFDF'" onMouseOut ="this.style.backgroundColor='#F1F1F1'"
onMouseOver ="this.style.backgroundColor='DFDFDF'" onMouseOut ="this.style.backgroundColor='#F1F1F1'"
本文介绍了一种使用onMouseOver和onMouseOut事件来改变HTML元素背景颜色的方法。通过简单的JavaScript代码,当鼠标悬停在指定的单元格上时,背景色变为'DFDFDF';当鼠标移开时,背景色恢复为'F1F1F1'。

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