如何打印web页面的部分内容 http://blog.csdn.net/net_lover/archive/2004/07/06/35228.aspx 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <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 colspan="2" align="center" style="font-weight:bold;border:3px double red">每页都有的表头</TD></TR></THEAD><TBODY style="text-align:center""><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR style="page-break-after:always;"><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR style="page-break-after:always;"><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR><TD>表格内容</TD><TD>表格内容</TD></TR><TR style="page-break-after:always;"><TD>表格内容</TD><TD>表格内容</TD></TR></TBODY><TFOOT style="display:table-footer-group;font-weight:bold"><TR><TD colspan="2" align="center" style="font-weight:bold;border:3px double blue">每页都有的表尾</TD></TR></TFOOT></TABLE><input type=button value=" 打 印 " onclick="window.print()"> CSS来控制是否打印,如果要控制打印的内容,那就用程序写吧,这也不算复杂,主要要细心,引号要配对。 时间的计算 C#问题,在线等待,谢谢大虾! 怎样使窗体放大后里面的控件自己适应放大?要控件一个一个调吗 菜鸟求教批处理的小问题! 我的连接字符串哪写错了? 超简单,刚学C#,如何单击菜单项,打开一个窗口 請教一個獲得焦點的問題! 从DataSet更新到SQL的问题 过多的流程,怎么编写程序? 请问怎么看到GetSqlStringCommand用@RequiredDate这种方式传值后的SQL. 界面的问题,对了马上给分 C#中怎么接收系统的MM_WIM_DATA消息,并映射到一个函数?
@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 colspan="2" align="center" style="font-weight:bold;border:3px double red">每页都有的表头</TD></TR>
</THEAD>
<TBODY style="text-align:center"">
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR style="page-break-after:always;"><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR style="page-break-after:always;"><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR><TD>表格内容</TD><TD>表格内容</TD></TR>
<TR style="page-break-after:always;"><TD>表格内容</TD><TD>表格内容</TD></TR>
</TBODY>
<TFOOT style="display:table-footer-group;font-weight:bold">
<TR>
<TD colspan="2" align="center" style="font-weight:bold;border:3px double blue">每页都有的表尾</TD>
</TR>
</TFOOT>
</TABLE>
<input type=button value=" 打 印 " onclick="window.print()">
CSS来控制是否打印,如果要控制打印的内容,那就用程序写吧,
这也不算复杂,主要要细心,引号要配对。