[英]Fixed column and fixed header and scrolling text using css?
我想通過使用CSS在表上固定列和固定標題,其余作為滾動文本。
但不使用jQuery,僅使用簡單的CSS和JavaScript
就像xls一樣
你去了::
這在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>
接受還是離開.... ^ _ ^
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.