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

后端 未结 4 1603
别那么骄傲
别那么骄傲 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条回答
  •  悲哀的现实
    2021-02-07 08:59

    I was getting the double header on the second page in chrome when printing

    Adding the following CSS made it appear properly (once)

    thead {
        display:table-header-group;
        break-inside: auto;
    }
    

    Source: https://stackoverflow.com/a/50987624/175071

提交回复
热议问题