Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

page-break-after:always; styling is ignored on element in a table cell

more options
When I set an
tag to have the "page-break-after:always;" styling, it works as expected. If that
is inside a <td>, the styling is ignored and the cell does not break the page as I require when printing it out. Example at

https://criticalsurveys.online/demo/pagebreaks.htm

When I set an <hr> tag to have the "page-break-after:always;" styling, it works as expected. If that <hr> is inside a <td>, the styling is ignored and the cell does not break the page as I require when printing it out. Example at https://criticalsurveys.online/demo/pagebreaks.htm

Все ответы (2)

more options

When I set an <hr> tag to have the "page-break-after:always;" styling, it works as expected. If that <hr> is inside a <td>, the styling is ignored and the cell does not break the page as I require when printing it out.

more options

(After Googling...) This has been an issue for a while. A bug was filed in 2002, and there is no sign of change on the horizon. (Bug 136714; before commenting, please read the entire discussion and see: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html.)

Why do you need such a large amount of content to be in a single table row?