1. 每頁表頭問題
參考: The Ultimate Print HTML Template with Header & Footer | by Idan Cohen | Medium
使用 table 中的 thead 會在每頁打印其中的內(nèi)容, 而不需要打印頁眉頁腳的頁面(頭2頁, 3頁等), 繼續(xù)使用 div static 布局
2. table row 被分到兩頁的問題
對 tr 使用 break-inside-avoid, break-after-auto
參考: How to Handle Page Breaks when Printing a Large HTML Table