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;
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章