简体   繁体   中英

CSS page-break on 2 pages div

Page does not break after a 2 pages div

Working fine with content in 1 page处理 1 页中的内容

Won't break if previous content is too long, dragged to page 2

前面内容过长不会断,拖到第2页

I put

<div class="pagebreak"></div>

at the end of each of my tickets with style:

.pagebreak { page-break-inside:avoid; page-break-after:always; }

Work fine with 1 page but long document it wont break.

Please help me to break them to correctly page.

your css

.pagebreak { page-break-inside:avoid; page-break-after:always; }

have you ever tried this instead ?

.pagebreak { page-break-inside:always; page-break-after:always; }

keep me up to date about your problem

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