gv_RowCreateed(…)
{
//鼠标移动到某行时,改变背景色
e.Row.Attributes.Add(“ommouseover”,”currentcolor=this.style.backgroundColor;this.style.backgroundColor=’#eaeaea’;”);
//鼠标移走时恢复
e.Row.Attributes.Add(“onmouseout”,”this.style.backgroundColor=currentcolor;”);
}
GridView 鼠标移动变色
最新推荐文章于 2023-01-12 10:32:47 发布
本文介绍了一段用于在鼠标悬停于表格行时更改其背景颜色,并在鼠标移开时恢复原背景颜色的简单JavaScript代码实现。

1260

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



