Landscape printing from HTML

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

    
    

    If you want this style to be applied to a table then create one div tag with this style class and add the table tag within this div tag and close the div tag at the end.

    This table will only print in landscape and all other pages will print in portrait mode only. But the problem is if the table size is more than the page width then we may loose some of the rows and sometimes headers also are missed. Be careful.

    Have a good day.

    Thank you, Naveen Mettapally.

提交回复
热议问题