您现在的位置是:首页
>
鼠标指向宏是什么 在GridView中鼠标滑过时改变背景颜色
在GridView中鼠标滑过时改变背景颜色 在GridView的相应事件下添加代码实现通过对Java cri t鼠标事件o mou eover与o mou eout来实现鼠标滑过时改变背景颜色 代

在GridView中鼠标滑过时改变背景颜色
在GridView的相应事件下添加代码实现通过对Javascript鼠标事件onmouseover与onmouseout来实现鼠标滑过时改变背景颜色 代码如下
protected void GVYWZhuangBeiCategory_RowDataBound(object sender GridViewRowEventArgs e)
{
if (e Row RowType == DataControlRowType DataRow)
{
//高亮显示指定行
e Row Attributes Add( onMouseOver Color=this style backgroundColor;this style backgroundColor= #FFF );
e Row Attributes Add( onMouseOut this style backgroundColor=Color; );
}
lishixinzhi/Article/program/net/201311/11630 很赞哦! (1076)