css表頭固定樣式的方法

字號:


    本文實例講述了css表頭固定樣式的方法。分享給大家供大家參考。
    具體實現(xiàn)方法如下:
    代碼如下:
    <style type=text/css>
    /*表頭樣式*/
    .scll {
    position: relative;
    top: expression(this.offsetparent.scrolltop);
    //background: url(../img/tab_15.gif) repeat-x left;
    background-color: #bcf4ec;
    text-align: center;
    vertical-align: middle;
    text-indent: 5px;
    }
    /*div樣式*/
    .h_500 {
    width: 100%;
    overflow: auto;
    height: 80%;/**根據(jù)具體的屏幕分辨率調(diào)整*/
    border: 0px;
    }
    /*細線表格*/
    .table {
    margin-top: 0px;
    margin-bottom: 3px;
    margin-bottom: 3px;
    border-top: 0px;
    border-bottom: 1px solid silver;
    }
    </style>
    希望本文所述對大家的css樣式設(shè)計有所幫助。