<body leftmargin="0" topmargin="0" onload="document.form1.reset()">
禁用ie中的后退按钮
<body leftmargin="0" topmargin="0" onload="window.history.forward(1)">
固定表头一
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<div style="overflow: auto; height: 200px">
<table cellspacing="0" border="1">
<tr style="position: relative; top: -1px; background-color: white;">
<th>
表头1</th>
<th>
表头2</th>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
</table>
</div>
</body>
</html>
<head>
</head>
<body>
<div style="overflow: auto; height: 200px">
<table cellspacing="0" border="1">
<tr style="position: relative; top: -1px; background-color: white;">
<th>
表头1</th>
<th>
表头2</th>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
</table>
</div>
</body>
</html>
固定表头二
<html>
<head>
<style type="text/css">
#fix_table { border-collapse : collapse;table-layout : fixed; width="100%"}
#table_container { width : expression(document.body.clientWidth); height :50; overflow : scroll; }
th.locked_top {top : position : relative; z-index : 1}
</style>
</head>
<body>
<form id="Form1" method="post" runat="server">
<div id='table_container' class="tableContainer">
<table border="0" cellpadding="0" cellspacing="0" id="fix_table">
<tr height="20" valign="top">
<th class="locked_top">
表头1</th>
<th class="locked_top">
表头2</th>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
</table>
</div>
</form>
</body>
</html>
<head>
<style type="text/css">
#fix_table { border-collapse : collapse;table-layout : fixed; width="100%"}
#table_container { width : expression(document.body.clientWidth); height :50; overflow : scroll; }
th.locked_top {top : position : relative; z-index : 1}
</style>
</head>
<body>
<form id="Form1" method="post" runat="server">
<div id='table_container' class="tableContainer">
<table border="0" cellpadding="0" cellspacing="0" id="fix_table">
<tr height="20" valign="top">
<th class="locked_top">
表头1</th>
<th class="locked_top">
表头2</th>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
<tr>
<td>
zdzhuo</td>
<td>
zdzhuo</td>
</tr>
</table>
</div>
</form>
</body>
</html>