每页一个DIV,加上样式page-break-inside:avoid; 便可分页了ide
.pdfpage{page-break-inside:avoid;}
<div class="pdfpage">1</div>
<div class="pdfpage">2</div>
<div class="pdfpage">3</div>