首页 新闻 会员 周边

gridview鼠标经过时改变颜色 可鼠标离开后有时却会留下了痕迹,改变行原有的颜色?

1
悬赏园豆:15 [已关闭问题] 关闭于 2012-01-11 08:59

淡绿色是鼠标经过时留下的....鼠标离开后有时才改变行原有的颜色,有时不会.....

RowDataBound事件:

if (e.Row.RowType == DataControlRowType.DataRow)             {                 e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#e5f6cf'");                 e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
            }

lqps的主页 lqps | 初学一级 | 园豆:44
提问于:2011-12-10 15:32
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册