html prints with blank pages

When printing a web page, there is always a blank page in front. This situation may be a bad thing with CSS.

After viewing the source code, I found the following line of code:

<div style='page-break-before:always'></div>

This is the code for css to control forced paging. After removing it, everything returns to normal.

Guess you like

Origin blog.csdn.net/wang740209668/article/details/90048891