web| Printing first gives a simple and practical way (you can print multiple pages, control pagination, hide nonprinting items)
<!--language-independent preservation into. HTML Look-->
<meta name=vs_targetschema content= "http://schemas.microsoft.com/intellisense/ie5" >
<title> See </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<!--Media=print This property can be effective when printing-->
<style media=print>
. Noprint{display:none;}
. Pagenext{page-break-after:always;}
</style>
Simple to understand HTML CSS can be.
The following styles are only useful when printing <style media=print>
<style media=print>
. Noprint{display:none;}
. Pagenext{page-break-after:always;}
</style>
WebBrowser the control object. As long as it is win98 the above version has.
In fact, with the "pagination style sheet", and HTML table general printing can be achieved.
If you want to use it for non-Windows platform users.
Please remove the following:
<center class= "Noprint" >
<p>
The most important thing about the <!--is this-->
<object id=webbrowser classid=clsid:8856f961-340a-11d0-a96b-00c04fd705a2 height=0 width=0>
</OBJECT>
<input Type=button value= Print ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (6,1) >
<input Type=button value= Direct Printing ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (6,6) >
<input Type=button value= Page Setup ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (8,1) >
</p>
<p> <input Type=button value= Print preview ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (7,1) >
<br/>
</p>
<HR align= "center" width= "90%" size= "1" noshade>
</center>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service