开发者

Fixed column and fixed header and scrolling text using css?

开发者 https://www.devze.com 2022-12-15 05:50 出处:网络
I want to make a fixed column 开发者_如何学运维and fixed header on a table with the rest as scrolling text by using CSS.

I want to make a fixed column 开发者_如何学运维and fixed header on a table with the rest as scrolling text by using CSS.

But not using jQuery, just simple CSS and JavaScript

just like xls Thanks


there you go::

this in styleSheet::

.box{
position:fixed;
}

    .bb { 
    position:absolute; 
    left:0px; 
    background-color:#AEC5EF; 
    width:200px; 
    height:200px; 
    } 

    .tt { 
  position:fixed; 
    left:200px; 
    background-color:#D4DDEF; 
    width:300px; 
    height:200px; 
    } 

HTML:

<table>
    <tr class="box"> 
        <td class="bb">  </td>
        <td class="tt">main text</td>
    </tr>
</table>

take it or leave it ....^_^

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号