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

前端 未结 12 2060
有刺的猬
有刺的猬 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:30

    Well Guys... Most of the Solutions up here didn't worked for. So this is how things worked for me..

    HTML

    
         .
         .
       
         .
         .
       
    
        //YOUR CODE
    
    
    ABC ABC

    The first set of head is used as a dummy one so that there won't be a missing top border in 2nd head(i.e. original head) while page break.

提交回复
热议问题