Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/473.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 静态Html表头代码_Javascript_Html_Css - Fatal编程技术网

Javascript 静态Html表头代码

Javascript 静态Html表头代码,javascript,html,css,Javascript,Html,Css,我想修复这个html表的标题,这样当我向下滚动时,标题保持静态 我的表格标题HTML: <table style="width: 425px; height: 4810px;" border="0"> <tbody> <tr class="tableizer-firstrow"> <th colspan="3"> <div style="text-align: left; text-color: #00A599;"><span s

我想修复这个html表的标题,这样当我向下滚动时,标题保持静态

我的表格标题HTML:

<table style="width: 425px; height: 4810px;" border="0">
<tbody>
<tr class="tableizer-firstrow">
<th colspan="3">
<div style="text-align: left; text-color: #00A599;"><span style="color: #00a599;">SEPTEMBER 2011 Anniversaries</span></div>
</th>
</tr>
<tr>
<th class="style1" style="text-align: center" width="143">Employee</th><th style="text-align: center" width="137">Department</th><th style="text-align: center" width="92">DOH</th><th width="49">Years</th>
</tr>
<tr>

2011年9月纪念日
员工部门

根据您的问题猜测您想要固定标题


看看是否可以在解决方案中使用jQuery。

您可以将表与标题分开,并有两个表,其中一个表只有标题。然后,对于内容表,您可以将其放在DIV中,并使用CSS使其可滚动


但是,由于页眉被拆分,您必须手动为TD元素分配宽度。

不确定您要问什么。您试图实现的是什么?给我们一些更详细的信息,我们可以帮助:)我想有一个表,将scroo下来,目前这样做,但我想保持标题静态,冻结。我使用Joomla,该表是在一篇文章,meabe CSS,或Javascript将做。。?