固定Table第一行或某几行不随滚动条滚动

来源:互联网 发布:linux svn防火墙设置 编辑:程序博客网 时间:2024/05/29 18:14

样式:

.fixedHead {    position: relative;    top:expression(this.offsetParent.scrollTop-2); }
使用:
<div><table class="con_tbl">        <tr class="fixedHead">            <th>标题不动</th>   </tr>
        <tr>            <td>内容滚动</td>   </tr>
</table>
</div>