简体   繁体   中英

How can I avoid page breaks inside a table, with only inline styles and without CSS

I am working with an invoice editor that only accepts HTML and inline styles. The invoice editor will print to PDF when run.

I cannot find a way to avoid page breaks without using .CSS which it doesn't support. Any ideas besides manually typing break tags in and praying nobody has a long enough address or name to cause the invoice to break in a weird spot?

You can use page-break-inside: avoid; on any element as a inline style (a table, but also a section or a container DIV) to avoid that element to be split.

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