How to deal with page breaks when printing a large HTML table

前端 未结 12 1952
有刺的猬
有刺的猬 2020-11-22 16:44

I have a project which requires printing an HTML table with many rows.

My problem is the way the table is printed over multiple page. It will sometimes cut a row in

12条回答
  •  执念已碎
    2020-11-22 17:31

    I've tried all suggestions given above and found simple and working cross browser solution for this issue. There is no styles or page break needed for this solution. For the solution, the format of the table should be like:

    Heading
    data

    Above format tested and working in cross browsers

提交回复
热议问题