css表頭固定樣式的方法

字號(hào):


    本文實(shí)例講述了css表頭固定樣式的方法。分享給大家供大家參考。
    具體實(shí)現(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;
    }
    /*細(xì)線表格*/
    .TABLE {
    margin-top: 0px;
    margin-bottom: 3px;
    margin-bottom: 3px;
    border-top: 0px;
    border-bottom: 1px solid silver;
    }
    </style>
    希望本文所述對(duì)大家的css樣式設(shè)計(jì)有所幫助。