1.

<style>
* {
page-break-inside: avoid;
page-break-after: avoid;
page-break-before: avoid;
}
</style>
 
2.所有的 display: inline-block;
改为 display: block;