简体   繁体   中英

html printing with page-break-inside:avoid

I have a lot of divs on a page with variable amounts of content in them. I have set page-break-inside: avoid; for these divs. Now the question is how I can reorder this divs to print efficiently.

For example:

div1 - content occupies half paper page
div2 - content occupies full paper page
div3 - content occupies half paper page

When printing these out - they will use 3 pages. Is it possible to reorder them like so:

div1
div3
div2

This way they will only use 2 pages of paper.

Is there a way to re-organize the div elements to efficiently print?

我要说的是,如果您有特定的尺寸,那么开始就是以px为单位设置宽度,高度,知道100px = 2.645833333cm并相应地播放

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM