页面HTML如下:
记得在thead加上style="display:table-header-group;font-weight:bold",这样每个页面才会有都表头哟
<div class="noneprint">
<div class="gTitle">>><A href="../Default.aspx" mce_href="Default.aspx">首页</A>>><A href="Default.aspx" mce_href="Default.aspx">门户</A>>>信息管理</div>
<table cellSpacing="0" cellPadding="2" width="100%" align="center" border="0" ID="Table1">
<tr>
<td align="right">标题:</td>
<td><input name="txtFName" type="text" id="txtFName" style="width:150px;" /></td>
<td align="right">所属街道:</td>
<td><select name="ddlStreet" id="ddlStreet">
<option selected="selected" value="">-请选择状态-</option>
</select></td>
<td align="right">录入日期:</td>
<td colSpan="3"><input name="sDate" type="text" id="sDate" onclick="setday(this)" style="width:80px;" />--
<input name="eDate" type="text" id="eDate" onclick="setday(this)" style="width:80px;" /></td>
<td><input type="submit" name="btnSearch" value="查询" id="btnSearch" class="Button" />
<input type="button" onclick="window.print()" value="打印" class="Button" ID="Button1" NAME="Button1"></td>
</tr>
</table>
</div>
<table class='tabPrint' align="center" width="95%" cellSpacing="0" cellPadding="0" border="0"
ID="Table2">
<thead style="display:table-header-group;font-weight:bold" mce_style="display:table-header-group;font-weight:bold">
<tr align="center">
<td rowspan="2">所属街道</td>
<td rowspan="2">标题</td>
<td rowspan="2">录入日期</td>
<td colspan="2">国家级</td>
<td colspan="1">市级</td>
</tr>
<tr align="center">
<td>人民日报</td>
<td>日报</td>
<td>新民晚报</td>
</tr>
</thead><tbody>
<tr align="center">
<td>浦东新区浦三街道</td>
<td>测试</td>
<td>02-24-2009</td>
<td>√</td>
<td>√</td>
<td>√</td>
</tr>
<tr align="center">
<td>浦东新区浦三街道</td>
<td>sseref</td>
<td>02-24-2009</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr align="center">
<td>浦东新区浦三街道</td>
<td>sseref</td>
<td>02-24-2009</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr align="center" class='nextPage'>
<td colspan="6" class='linetd'>第1页</td>
</tr>
<tr align="center">
<td>浦东新区浦三街道</td>
<td>sdsedjiik</td>
<td>02-24-2009</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr align="center">
<td>浦东新区浦三街道</td>
<td>sdsedjiik</td>
<td>02-24-2009</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr align="center">
<td>浦东新区浦三街道</td>
<td>sdsedjiik</td>
<td>02-24-2009</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr align="center">
<td>浦东新区浦三街道</td>
<td>sdsedjiik</td>
<td>02-24-2009</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr align="center">
<td>浦东新区浦三街道</td>
<td>sdsedjiik</td>
<td>02-24-2009</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody></table>
呵呵,标记为红色的地方你可要看仔细哟,完不完美全靠它!