一个比较漂亮的DataGrid样式表
body { font-family:宋体,MS Sans Serif; font-size:9pt; word-break:break-all; }
p { font-family:宋体,MS Sans Serif; font-size:9pt; }
table { font-family:宋体,MS Sans Serif; font-size:9pt; }
tr { font-family:宋体,MS Sans Serif; font-size:9pt; }
td
{
font-size: 9pt;
overflow: hidden;
font-family: 宋体,MS Sans Serif;
}
input { font-family:宋体,MS Sans Serif; font-size:9pt; }
.InputField { font-family:宋体,MS Sans Serif;font-size:9pt; }
a:link { color: #003399;text-decoration: none;}
a:active{ color: #003399;text-decoration: none;}
a:hover { color: #003399;text-decoration: none;}
a:visited { color: #003399;text-decoration: none;}
.Banner { font-family:宋体, MS Sans Serif;font-size:9pt;font-weight:bold;
color:#ffffff;filter:Shadow(color=#000000,directsion=135) }
.Title { font-family:宋体, MS Sans Serif;font-size:9pt;
color:#ffffff; }
.Categoriestitle { font-family:宋体, MS Sans Serif;font-size:9pt;font-weight:bold;
color:#000000; }
.Categoriestext { font-family:宋体, MS Sans Serif;font-size:9pt;
color:#000000; }
.Copyrighttext { font-family:宋体, MS Sans Serif;font-size:9pt;font-weight:normal;
color:#ffffff; }
.Menu:link { color:#000000;text-decoration:none; }
.Menu:active { color:#000000;text-decoration:none; }
.Menu:hover { color:#000000;text-decoration:none; }
.Menu:visited { color:#000000;text-decoration:none; }
.ErrTitle{ font-family:宋体, MS Sans Serif;font-size:18pt;font-weight:bold;
color:#000000; }
.Subject{ font-family:宋体, MS Sans Serif;font-size:16pt;font-weight:bold;
color:#003399; }
.SubjectDesc { font-family:宋体, MS Sans Serif;font-size:9pt;color:#003399;font-weight:normal }
.ContextTitle{ font-family:宋体, MS Sans Serif;font-size:12pt;font-weight:bold;
color:#000000; }
.NewButton { width:16px;height:15px;background-image:url(../images/banner/new.gif) }
.EditButton { width:16px;height:15px;background-image:url(../images/banner/edit.gif) }
.DelButton { width:16px;height:15px;background-image:url(../images/banner/del.gif) }
.OptionButton { width:16px;height:15px;background-image:url(../images/banner/option.gif) }
.QueryButton { width:16px;height:15px;background-image:url(../images/banner/query.gif) }
.SetUserButton { width:16px;height:15px;background-image:url(../images/banner/user.gif) }
.SetRightButton { width:16px;height:15px;background-image:url(../images/banner/userright.gif) }
.ChgPwdButton { width:16px;height:15px;background-image:url(../images/banner/pwd.gif) }
.SetRoleButton { width:16px;height:15px;background-image:url(../images/banner/role.gif) }
.ImportButton { width:16px;height:15px;background-image:url(../images/banner/import.gif) }
.PrintButton { width:16px;height:15px;background-image:url(../images/banner/print.gif) }
.TaskButton { width:16px;height:16px;background-image:url(../images/banner/task.gif) }
.kaoqinButton { width:16px;height:16px;background-image:url(../images/banner/kaoqin.gif) }
.transferButton { width:16px;height:16px;background-image:url(../images/banner/transfer.gif) }
.salaryButton { width:16px;height:16px;background-image:url(../images/banner/salary.gif) }
.workthingButton { width:16px;height:16px;background-image:url(../images/banner/workthing.gif) }
.performanceButton { width:16px;height:16px;background-image:url(../images/banner/performance.gif) }
.checkButton { width:16px;height:16px;background-image:url(../images/banner/check.gif) }
.workButton { width:16px;height:16px;background-image:url(../images/banner/work.gif) }
.exitButton { width:16px;height:16px;background-image:url(../images/banner/exit.gif) }
.backButton { width:16px;height:16px;background-image:url(../images/banner/back.gif) }
.saveButton { width:16px;height:16px;background-image:url(../images/banner/save.gif) }
.iconPwd { width:16px;height:16px;background-image:url(../images/banner/pwd.gif)}
.iconHome { width:16px;height:16px;background-image:url(../images/banner/home.gif)}
.iconCwd { width:16px;height:16px;background-image:url(../images/banner/chgpwd.gif)}
.Maintenance { width:24px;height:24px;background-image:url(../images/banner/maintenance.gif) }
.ModifyTitle { width:24px;height:24px;background-image:url(../images/banner/modify.gif) }
.WorkBooks { width:24px;height:24px;background-image:url(../images/banner/workbooks.gif) }
.Error { font-family:宋体, MS Sans Serif;font-size:9pt;
color:#ff0000; }
.tInfo { font-family:宋体, MS Sans Serif;font-size:9pt;font-weight:bold;color:"#B6972E" }
.tInfo2 { font-family:宋体, MS Sans Serif;font-size:9pt;font-weight:bold;color:"#003399" }
.GridBorder { border-top:solid 1px #6595d6;border-left:solid 1px #6595d6;border-right:solid 1px #6595d6;border-bottom:solid 1px #6595d6}
.grid-header a:active
{
color: #222222;
text-decoration: none;
}
.grid-header a:link
{
color: #222222;
text-decoration: none;
}
.grid-header a:visited
{
color: #222222;
text-decoration: none;
}
.grid-header a:hover
{
color: #222222;
text-decoration: none;
}
.grid-edit-column
{
border-top: #696969 1px solid;
border-bottom: #696969 1px solid;
border-left: #696969 1px solid;
}
.grid-first-item
{
border-top: #696969 1px solid;
border-right: #696969 1px solid;
border-bottom: #696969 1px solid;
padding-right: 4px;
padding-left: 4px;
padding-bottom: 4px;
padding-top: 4px;
margin: 1px;
}
.grid-item
{
border-right: #696969 1px solid;
border-top: #696969 1px solid;
border-left: #696969 1px double;
border-bottom: #696969 1px solid;
padding-right: 4px;
padding-left: 4px;
padding-bottom: 4px;
padding-top: 4px;
margin: 1px;
}
.grid-header
{
border-bottom: #696969 1px solid;
font-weight: bold;
font-size: 11px;
color: #696969;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.grid-last-item
{
border-top: #696969 1px solid;
border-left: #696969 1px solid;
border-bottom: #696969 1px solid;
padding-right: 4px;
padding-left: 4px;
padding-bottom: 4px;
padding-top: 4px;
margin: 1px;
}
Input.AddButton
{
background-color:Transparent;
color:#264A54;
background-image:url(../images/banner/);
height:19;
width:95;
background-position:0 0;
background-repeat:no-repeat;
overflow:hidden;
cursor:hand;
font-family:Tahoma;
border-style:none;
}
Input.QueryButton
{
background-color:Transparent;
color:#264A54;
background-image:url(../images/banner/btn_query.gif);
height:19;
width:95;
background-position:0 0;
background-repeat:no-repeat;
overflow:hidden;
cursor:hand;
font-family:Tahoma;
border-style:none;
}
Input.ReportButton
{
background-color:Transparent;
color:#264A54;
background-image:url(../images/banner/btn_check&accept.gif);
height:19;
width:95;
background-position:0 0;
background-repeat:no-repeat;
overflow:hidden;
cursor:hand;
font-family:Tahoma;
border-style:none;
}
Input.CheckAcceptButton
{
background-color:Transparent;
color:#264A54;
background-image:url(../images/banner/btn_check&accept.gif);
height:19;
width:95;
background-position:0 0;
background-repeat:no-repeat;
overflow:hidden;
cursor:hand;
font-family:Tahoma;
border-style:none;
}
本文来自博客园,作者:古道轻风,转载请注明原文链接:https://www.cnblogs.com/88223100/archive/2007/12/27/1016222.html
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析