Landscape printing from HTML

前端 未结 16 2121
被撕碎了的回忆
被撕碎了的回忆 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 06:57

    I created a blank MS Document with Landscape setting and then opened it in notepad. Copied and pasted the following to my html page

    
    
    
    
    
    put text / images / other stuff

    The print preview shows the pages in a landscape size. This seems to be working fine on IE and Chrome, not tested on FF.

提交回复
热议问题