protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
//添加光棒效果
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseenter", "bg=this.style.backgroundColor;this.style.backgroundColor='#4EE4A5'");
e.Row.Attributes.Add("onmouseleave", "this.style.backgroundColor=bg");
}
}
GridView添加光棒效果
最新推荐文章于 2019-09-27 17:23:18 发布