public static void ChangeColor(GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#FF8040'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
}
}
----------------
上面在IE正常,在火狐里面的时候,鼠标放置稍微久点,鼠标移开,它的背景色没有复原,为什么
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#FF8040'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
}
}
----------------
上面在IE正常,在火狐里面的时候,鼠标放置稍微久点,鼠标移开,它的背景色没有复原,为什么
火狐是可以有效果,就是,有时鼠标离开那背景色还没有恢复