Landscape printing from HTML

前端 未结 16 1791
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 06:31

I have a HTML report, which needs to be printed landscape because of the many columns. It there a way to do this, without the user having to change the document settings?

16条回答
  •  感情败类
    2020-11-22 07:00

    If you want to see landscape on the screen before you print, as well as printing, then in your css, you can set the width to 900px, and the height to 612px.

    OP didn't mention A4 size. I assume it's Letter size in my numbers above.

提交回复
热议问题