Removing page title and date when printing web page (with CSS?)

后端 未结 7 598
一个人的身影
一个人的身影 2020-11-29 01:31

By default, when you print a web page, the page title and and URL are printed at the top of the page, and likewise the date

相关标签:
7条回答
  • 2020-11-29 02:36

    Try this;

    @media print{ @page { margin-top: 30px; margin-bottom: 30px;}}

    0 讨论(0)
提交回复
热议问题