当css中做如下设置 body{ height:100% } window.print()会出现始终只打印了第一页,后面的内容无法打印。 解决方案: 在@media print{ body { height : auto}}中重置