Excel adapts to paper size: a way to adapt to different paper when CSS is printed
Source: Internet
Author: User
You can specify media= "print" to make the stylesheet work only when printing, and then use Display:none to hide headers, footers, advertisements, and so on, and note that this should be done by setting the width of the page content to 100% better, because it can be adapted to different paper.
You might say: I've set 100%, why did the right half of the article not appear on paper when I printed it? At this time to think about: from the body below the first level of elements to start, to the article this level, is not that the width of the div it is not 100%? It is possible that you used a fixed-length unit to set the width of a div at a certain level.
By the way, the connection style example:
This article links http://www.cxybl.com/html/wyzz/CSS/20120601/27368.html
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