When printing a web page, sometimes an element should not be printed on two pages. For example, we want a set of questions to be in the same page. At this time, we need set the page-breaking behavior.
CSS code for this is actually very easy:
.pagebreak{ page-break-before:always; } |