GridView 样式

这些都是我在网上找的,我觉得也就是看个思路具体的还要自己来,最最主要的是你一定要懂CSS样式

 <style>
        body
{
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    font-size: 12px;
}

.gv
{
    border: 1px solid #D7D7D7;
}
.gvHeader
{
    color: #3F6293;
    background-color: #F7F7F7;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: normal;
    font-variant: normal;
}
.gvHeader th
{
    font-weight: normal;
    font-variant: normal;
}
.gvRow, .gvAlternatingRow, .gvEditRow
{
    line-height: 20px;
    text-align: center;
    padding: 2px;
    height: 20px;
}
.gvAlternatingRow
{
    background-color: #F5FBFF;
}
.gvEditRow
{
    background-color: #FAF9DD;
}
.gvEditRow input
{
    background-color: #FFFFFF;
    width: 80px;
}
.gvEditRow .gvOrderId input, .gvEditRow .gvOrderId
{
    width: 30px;
}
.gvEditRow .checkBox input, .gvEditRow .checkBox
{
    width: auto;
}
.gvCommandField
{
    text-align: center;
    width: 130px;
}

.gvLeftField
{
    text-align: left;
    padding-left: 10px;
}
.gvBtAField
{
    text-align: center;
    width: 130px;
}
.gvCommandField input
{
    background-image: url(../Images/gvCommandFieldABg.jpg);
    background-repeat: no-repeat;
    line-height: 23px;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    width: 50px;
    height: 23px;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: 10px;
}
.gvPage
{
    padding-left: 15px;
    font-size: 18px;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
}
.gvPage a
{
    display: block;
    text-decoration: none;
    padding-top: 2px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-left: 5px;
    border: 1px solid #FFFFFF;
    float: left;
    font-size: 12px;
    font-weight: normal;
}
.gvPage a:hover
{
    display: block;
    text-decoration: none;
    border: 1px solid #CCCCCC;
}

 

    </style>

*****************************************************************

.GridTable
{
    background:url(../images/mes_login/a-5.jpg);
    width: 100%;
    border-color: #3183C4;
    border-width: 1px;
    border-style: solid;
    m1:expression(this.borderColorLight='#3183C4');/*中层表格亮边框*/
    m2:expression(this.borderColorDark='#3183C4');/*中层表格暗边框*/   
}
.GridSelectedItem
{
    text-align: center;
    background-color: #F7EFEF;
    height:18px;
}
.GridAlterItem
{
    text-align: center;
    background-color: #DEDEDE;
    height:18px;
}
.GridItem
{
    background-color: #FFFFFF;
    height:18px;
    text-align: center;
}
.GridHeader
{
    text-align: center;
    color: #ffffff;
    background-color: #3183C4;
    font-weight: bold;
    height:20px;
   
}
.GridFooter
{
    color: #333333;
    background-color: White;
    height:20px;
}
.GridPager
{
    text-align: right;
    background-color: White;
    font-weight:normal;
    vertical-align: middle;
    height:20px;
}
.GridHeader A, .GridHeader A:visited
{
    color: #ffffff;
    text-decoration: none;
}
.GridHeader A:hover
{
    color: #ffffff;
    text-decoration: underline;
}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值