长图打印自动分页 有分页功能的WEB打印
有分页功能的WEB打印
<> <head> <title>看看</title> <meta equiv= Content Type content= text/; charset=gb > <! media=print 这个属性可以在打印时有效 > <style media=print> Noprint{display:none;} PageNext{page break after: always;} </style>
<style> tdp { border bottom: solid # ; border left: solid # ; border right: solid #ffffff; border top: solid #ffffff; } tabp { border color: # # # # ; border style: solid; border top width: px; border right width: px; border bottom width: px; border left width: px; } NOPRINT { font family: 宋体 ; font size: pt; }
</style>
</head>

<body > <center class= Noprint > <p> <OBJECT id=WebBrowser classid=CLSID: F A D A B C FD A height= width= > </OBJECT> <input type=button value=打印 onclick=document all WebBrowser ExecWB( )> <input type=button value=直接打印 onclick=document all WebBrowser ExecWB( )> <input type=button value=页面设置 onclick=document all WebBrowser ExecWB( )> </p> <p> <input type=button value=打印预览 onclick=document all WebBrowser ExecWB( )> <br/> </p> <hr align= center width= % size= noshade> </center>
lishixinzhi/Article/program/Java/JSP/201311/19124