如何在页面上滚动时使标题静态

时间:2015-07-20 15:23:05

标签: html

我试图弄清楚哪里是插入位置的最佳位置:fiuxed代码到我的下面的代码中。我想在滚动时让内容保持在页面顶部?谢谢!

[_ table width =“100%”> [_ tr> [_ td width =“50%”style =“text-align:left”valign =“bottom”> [ i ]过去一周[ u ] [ b ] [ / b ] [ / u ] [ / td ] [_ td width =“40%”colspan =“3”> [_ table width =“100%”> [_ tr> [ td width =“25%”style =“text -align:center“valign =”bottom“>从不[ / td_] [ td width =“25%”style =“text-align:center”valign =“bottom”>一旦[ / td_] [ td width =“25%”style =“text-align:center”valign =“bottom”>几次[ / td_] [ td width =“25%”style =“text-align:center”valign =“bottom”> Everyday [ / td _] [ / tr ] [ / table ] [ / td ] [_ td width =“10%”style =“text-align:center”valign =“bottom”>如果遇险,请勾选此框

1 个答案:

答案 0 :(得分:2)

This is a similar question

无论如何,在线你可以找到很多关于这个任务的插件和教程:

Pure CSS Scrollable Table with Fixed Header

Creating Cross Browser Scrollable