CSS automatically print version of website
CSS automatically print version of website
Many websites have a view on the print version, but in fact this is not necessary, because the CSS can be used to set the print style.
In other words, can be designated for two pages CSS documents, one for display and one for print:
<link Type="text/css" rel="stylesheet" href="stylesheet.css" media="screen" />
<link Type="text/css" rel="stylesheet" href="printstyle.css" media="print" />
Is the first line, the second line is printing, media attention to the attributes.
But it should be in print CSS wrote what? You can design according to the CSS general method to set it. At the same time the design can be set to show the CSS CSS to examine its effect. Perhaps you will use display: none of this command to turn off some decorative picture, then turn off some navigation button.
Tags: css layout Record website, css website, w3c website w3c statement w3c css






Leave a Reply