scale html table before printing using css

后端 未结 3 1539
死守一世寂寞
死守一世寂寞 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:56

    I ended up rewriting the whole table with percentage sizes applied as classes and then was able to scale the page for printing. Not sure why the browser was ignoring my print styles regarding the transform but converting the table from fixed sizes to proportional sizes has enabled me to scale it with CSS and the issue is gone.

提交回复
热议问题