scale html table before printing using css

后端 未结 3 1540
死守一世寂寞
死守一世寂寞 2020-12-25 12:55

I have a table as the entire content of an HTML document (for legitimate table purposes...it is table data, not for layout). Some cells have widths and heights specified (n

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-25 13:35

    I know I'm raising the dead, but for future search results reference:

    I ran into a problem with super wide tables causing all the browsers to calculate the height incorrectly and repeat the thead multiple times on single pages - my solution was to apply zoom: 80% to the body (% varies based on your needs) which forced our page to effectively fit for print and the thead then was repeated properly at the top of every page. Perhaps trying zoom will work where transform did not.

提交回复
热议问题