Home >Web Front-end >HTML Tutorial >Please ask for the correct usage of this CSS style='page-break-before: always'_html/css_WEB-ITnose

Please ask for the correct usage of this CSS style='page-break-before: always'_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:13:31855browse

style="page-break-before: always"

Ask for the correct usage of this CSS


When printing PDF, there is always an extra page


Reply to discussion (solution)

1. It is recommended to use after.
2.page-break and others must be added to one page, not one of the paragraphs.
If you use before, you need to add an if to determine whether it is the last one. If so, do not add this style. In other words, only other pages except the last page will be used.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn