How can I have different CSS when I print or print preview?

后端 未结 4 419
南笙
南笙 2020-12-03 17:23

I\'d like to change some things on my web page. Also I would like to make some things hidden. Is there a way I can do this with CSS when I print? In particular I want to be

4条回答
  •  被撕碎了的回忆
    2020-12-03 18:05

    I've used

    
    

    To achieve this. Assign #ids or .classes to elements you don't want to display. And use display: none for those elements in print.css stylesheet.

提交回复
热议问题