Workaround for Chrome 53 printing table header twice on 2nd and later pages?

后端 未结 4 1594
别那么骄傲
别那么骄傲 2021-02-07 08:26

Users of my website need to be able to print web pages consisting of content on the first printed page followed by a table on the second page. A stripped down version is (jsFid

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 08:55

    I posted the same issue to the Chrome feedback channels. My workaround for now was to simply remove my thead elements for a standard table row within the tbody. It's certainly not as semantically pure, but you can pretty simply restyle them with a touch of css.

    Table:

    Scss:

    tr.thead {
      td {
        font-weight:bold;
        border-bottom: solid 1px #333;
      }    
    }
    

提交回复
热议问题