固定表格的标题列_2(CSS)
2004-11-21 20:17
423 查看
<html>
<body>
<div style="overflow:auto;height:100px;">
<table width="100%">
<TR style="position:relative;top:expression(this.offsetParent.scrollTop);background:navy;color:white;">
<TH nowrap>Header A</TH>
<TH nowrap>Header B</TH>
<TH nowrap>Header C</TH>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
</table>
</div>
</body>
</html>
<body>
<div style="overflow:auto;height:100px;">
<table width="100%">
<TR style="position:relative;top:expression(this.offsetParent.scrollTop);background:navy;color:white;">
<TH nowrap>Header A</TH>
<TH nowrap>Header B</TH>
<TH nowrap>Header C</TH>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
<TR>
<TD>A</TD>
<TD>B</TD>
<TD>C</TD>
</TR>
</table>
</div>
</body>
</html>
相关文章推荐
- javascript表单之间的数据传递!
- SELECT TOP N 问题
- VB五子棋问题,请高手赐教
- 獲取SQL SERVER用戶表信息游標
- struts tag lib(1)
- Struts tags (4) ----Html(2)
- 关于FSO静态生成技术的应用范围之解决思路
- DOM心得
- win2003搜索字词问题
- UBB代码的实现(ASP)
- 为什么普通用户可以看到其他用户创建dblink的密码?
- hpux的nfile
- 搜索最大值所在的ID号 - 和 - 用C#和数据库实现无限级分类法
- 如何通过动态生成Html灵活实现DataGrid分类统计的界面显示功能
- XML的QL查询语言及其实现-1
- 我的php的一个数据库的操纵类
- 如何根据下拉列表框的值来给textarea或者其它容器动态的增加内容?
- 在线人数的统计方法。
- 获取系统当前打开的端口(tcp。udp)状态,以及连接方的ip。端口