近日整理桌面上面的文件,发现以前搜索到的一段固定表格首行的代码,发到网上大家一块研究一下。
学36网Nd页G5B网(http://www.xwangye.com)
| 以下是代码片段: <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> |
学36网Nd页G5B网(http://www.xwangye.com)

当前 位置: 

