html
头戴
title看/title
meta http-equiv=' content-type ' content=' text/html; charset=gb2312 '
! --media=print属性在打印时有效-
样式介质=打印
. no打印{ display : none; }
. pagenext { page-break-after : always; }
/style
斯泰尔斯
. tdp
{
border-bottom :1solid # 000000;
border-left : 1固态# 000000;
border-right : 0固态# ffffff;
border-top : 0实体# ffffff;
}
. tabp
{
border-color : # 000000 # 000000 # 000000 # 0000000 # 00000000;
边框样式:实体;
border-top-width: 2px;
边框光宽度: 2px;
边框-底部-宽度: 1px;
边框左宽度: 1px;
}
. no打印{
font-family: '宋体';
font-size: 9pt;
}
/style
/head
实体
center class='Noprint '
p
objectid=webbrowser classid=clsid 33608856 f 961-340 a-11d0- a96b-00 c 04 FD 705 a2 height=0width=0
/OBJECT
input type=button value=打印nclick=document.all.webbrowser.execwb (6,1 ) ) ) ) ) ) ) ) )。
input type=button value=直接打印nclick=document.all.webbrowser.execwb (6,6 ) ) ) ) ) ) )。
input type=button value=页面设置nclick=document.all.webbrowser.execwb (8,1 ) ) ) ) ) ) ) ) )。
/p
p input type=button value=打印预览nclick=document.all.webbrowser.execwb (7,1 ) ) ) ) ) ) ) ) )。
br/
/p
HR align=' center ' width=' 90 % ' size='1' no shade
/中心
table width=' 90 % ' border='0' align=' center ' cell padding='2' cellspacing='0' class=' tabp '
tr
td colspan='3' class='tdp第页/td
/tr
tr
td width='29%' class='tdp'nbsp; /td
td width='28%' class='tdp'nbsp; /td
td width='43%' class='tdp'nbsp; /td
/tr
tr
td colspan='3' class='tdp'nbsp; /td
/tr
tr
TD colspan='3' class=' TDP ' table width=' 100 % ' border='0' cellspacing='0' cell padding='0'
tr
td width='50%' class='tdp'p这样的报告/p
p足以满足一般要求。 /p/td
tdnbsp; /td
/tr
/table/td
/tr
/table
HR align=' center ' width=' 90 % ' size='1' no shade class=' no print '
! -分页-
div class='PageNext'/div
table width=' 90 % ' border='0' align=' center ' cell padding='2' cellspacing='0' class=' tabp '
tr
td class='tdp第页/td
/tr
tr
看到td class='tdp '分页符了吧/td
/tr
tr
td class='tdp'nbsp; /td
/tr
tr
td class='tdp'nbsp; /td
/tr
tr
TD class=' TDP ' table width=' 100 % ' border='0' cellspacing='0' cell padding='0'
tr
td width='50%' class='tdp'p这样的报告/p
p足以满足一般要求。 /p/td
tdnbsp; /td
/tr
/table/td
/tr
/table
/body
/html
来自3http://www.got aspx.com/html/a701p1. aspx