Can I change page layout when using window.print()?

后端 未结 4 1933
无人及你
无人及你 2021-02-20 02:09

In our application we enable users to print pages. We do this by supplying a button which when click calls the window.print() function.
Some of the pages would look better i

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-20 03:16

    You should use a print stylesheet.

    
    

    More info...

    How to print only parts of a page?

    Edit: to coerce landscape orientation, apparently the standard is size: landscape, but I have no idea how well that's supported across browsers.

提交回复
热议问题