源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

asp.net下让Gridview鼠标滑过光棒变色效果

  • 时间:2021-10-15 03:19 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:asp.net下让Gridview鼠标滑过光棒变色效果
[u]复制代码[/u] 代码如下:
//光棒效果 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='#FFFDD7'"); e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor"); } }
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部