ITeye博客

CSS 固定表头和列

Andy_Dou · 2010-03-14 04:00 · CSS · Web前端 · Markdown

 <style>
        .FixedTitleRow {
            position: relative; 
            top: expression(this.offsetParent.scrollTop); 
            z-index: 10;
            background-color: #E6ECF0;
        }      
        .FixedTitleColumn {
            position: relative; 
            left: expression(this.parentElement.offsetParent.scrollLeft);
        }       
        .FixedDataColumn {
            position: relative;
            left: expression(this.parentElement.offsetParent.parentElement.scrollLeft);
            background-color: #E6ECF0;
        }  
</style>

评论(1)

  1. #1 楼 · tuo_bing · 2010-08-06 11:26

    FF 下貌试不支持 。。。

评论功能维护中,当前仅展示历史评论。