zoukankan
html css js c++ java
GridView移动行变色
1.
protected
void
myGridView_RowDataBound(
object
sender, GridViewRowEventArgs e)
{
//
if (e.Row.RowType == DataControlRowType.Header)
//
{
//
e.Row.Attributes.Add("style", "background-image:url('./HeadImages/headeImage.jpg')");
//
}
if
(e.Row.RowType
==
DataControlRowType.DataRow)
{
//
e.Row.Attributes["onmouseover"] = "ItemOver(this)";
e.Row.Attributes.Add(
"
onmouseover
"
,
"
e=this.style.backgroundColor; this.style.backgroundColor='#EEEEEE'
"
);
e.Row.Attributes.Add(
"
onmouseout
"
,
"
this.style.backgroundColor=e
"
);
}
}
2.
e.Row.Attributes[
"
onmouseover
"
]
=
"
ItemOver(this)
"
;
if
(
!
objbeforeItem)
{
var
objbeforeItem
=
null
;
var
objbeforeItembackgroundColor
=
null
;
}
function
ItemOver(obj)
{
if
(objbeforeItem)
{
objbeforeItem.style.backgroundColor
=
objbeforeItembackgroundColor;
}
objbeforeItembackgroundColor
=
obj.style.backgroundColor;
objbeforeItem
=
obj;
obj.style.backgroundColor
=
"
#B9D1F3
"
;
}
查看全文
相关阅读:
配置中心(Config、Bus)
链路追踪(Sleuth、Zipkin)
服务网关(Zuul)
服务熔断(Hystrix、Turbine)
服务消费(Ribbon、Feign)
Win10共享打印机不能用-卸载更新
vb.net listview 可编辑 ,使用textbox附加实现
vb.net 使用 ionic.zip 压缩解压缩 文件 文件夹
Response.End() 与Response.Close()的区别(转载)
vb6、vbA通过sendmessage postmessage 发送按键、字符到其他程序
原文地址:https://www.cnblogs.com/cnaspnet/p/1242230.html
最新文章
python编写的实用函数-001
python的<<位移操作
python 在列表,元组,字典变量前加*号(转)
shell脚本监控linux,cpu,内存,磁盘资源
什么是yield?
强大的strace命令用法详解(转)
python之pandas 中文api
python之疫情监控(爬虫+可视化)主要技术(Python+Flask+Echarts)
sql 之mysql间隔几分钟统计一次数据
SQL优化之 select * 不随便使用
热门文章
linux 之 nested exception is java.awt.AWTError: Can’t connect to X11 window server using ‘localhost:10.0’ as the value of the DISPLAY variable.
kettle导出execl时报org.apache.commons.vfs2.FileSystemException: File closed.
kettle 之 Establishing SSL connection without server‘s identity的解决方案
mysql 之创建时间和更新时间字段设计CURRENT_TIMESTAMP 和 ON UPDATE CURRENT_TIMESTAMP
Linux命令行使用python的matplotlib,报错_tkinter.TclError: no display name and no $DISPLAY environment variable问题解决
mysql 之replace()函数用法
Ajax
hashcode()和equals()的作用、区别、联系
格式化输出
类的执行顺序
Copyright © 2011-2022 走看看