`
weixing
  • 浏览: 80061 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

asp.net(c#) GridView实现鼠标悬停高亮显示

    博客分类:
  • .NET
 
阅读更多

asp.net(c#) GridView实现鼠标悬停高亮显示

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
    if (e.Row.RowType == DataControlRowType.DataRow)
    {
        e.Row.Attributes.Add("onmouseover","currentcolor=this.style.backgroundColor;this.style.backgroundColor='#6699ff';");
        e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor;");
    }
}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics