CSS分页符示例
演示如何使用CSS将分页符命令添加到网页。
查看示例页面的打印预览。
<!------>
<style type="text/css">
/* this is the important part (should be used in HTML head): */
.pagebreak {
page-break-after: always;
}
</style>
<h1>First page</h1>
<p>Some text</p>
<br class="pagebreak" />
<h1>Second page</h1>
<p>Some more text</p>
<br class="pagebreak" />
<h1>Third page</h1>
<p>And again some text</p>
原文链接:https://www.f2er.com/html/527506.html