How to only show certain parts with CSS for Print?

后端 未结 6 658
悲&欢浪女
悲&欢浪女 2020-11-27 20:22

I have a page with lots of data, tables and content. I want to make a print version that will only display very few selected things.

Instead of writing another page

6条回答
  •  清酒与你
    2020-11-27 20:38

    Nearly all browsers support it. It might be advantageous to use the media attribute on the link tag.

    Using display: none; in some of your rules would be an appropriate way to handle your situation.

提交回复
热议问题