2011-01-03 18 views

答えて

1

ヘッドをCSSで固定することは可能です。常に上に表示されます。

<table> 
<thead style="position:fixed; top:0px; z-index:42; background:#fff;"> 
    <tr> 
    <th>head cell a</th> 
    <th>head cell b</th> 
    </tr> 
</thead> 
<tbody> 
    <tr> 
    <td>1a</td> 
    <td>1b</td> 
    </tr> 
    <tr> 
    <td>2a</td> 
    <td>2b</td> 
    </tr> 
    <!-- ... --> 
</tbody> 
</table> 
+0

iE – kbvishnu

+0

では機能しません。私はこれを見つけた:http://stackoverflow.com/questions/684211/html-table-with-fixed-headers-and-a-fixed-column and this http://stackoverflow.com/questions/673153/html-table -with-fixed-headers – Floern

+0

このソリューションはFirefoxでのみ動作します。 IEではありません。 – kbvishnu

関連する問題