试试怎么样<style>
@media print{
INPUT {display:none}
}
</style>
<TABLE border="0" style="font-size:9pt;" width="300px" align="center">
<THEAD style="display:table-header-group;font-weight:bold">
<TR><TD align="center">页头内容1</TD></TR>
<TR><TD align="center">页头内容2</TD></TR>
<TR><TD align="center">页头内容3</TD></TR>
</THEAD>
<TBODY style="text-align:center">
<TR><TD>
<p>打印内容</p>
<p>打印内容</p>
……
</TD></TR>
</TBODY>
<TFOOT style="display:table-footer-group;font-weight:bold;">
<TR>
<TD align="center">页尾内容1</TD>
</TR>
<TR>
<TD align="center">页尾内容2</TD>
</TR>
</TFOOT>
</TABLE>
<input type=button value=" 打 印 " onclick="window.print()">
@media print{
INPUT {display:none}
}
</style>
<TABLE border="0" style="font-size:9pt;" width="300px" align="center">
<THEAD style="display:table-header-group;font-weight:bold">
<TR><TD align="center">页头内容1</TD></TR>
<TR><TD align="center">页头内容2</TD></TR>
<TR><TD align="center">页头内容3</TD></TR>
</THEAD>
<TBODY style="text-align:center">
<TR><TD>
<p>打印内容</p>
<p>打印内容</p>
……
</TD></TR>
</TBODY>
<TFOOT style="display:table-footer-group;font-weight:bold;">
<TR>
<TD align="center">页尾内容1</TD>
</TR>
<TR>
<TD align="center">页尾内容2</TD>
</TR>
</TFOOT>
</TABLE>
<input type=button value=" 打 印 " onclick="window.print()">
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货