在打印网页时删除页面标题和日期(使用CSS?)

在打印网页时删除页面标题和日期(使用CSS?)

问题描述:

默认情况下,打印网页时,网页顶部会打印标题网址页面,同样日期时间打印在底部。

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 and time are printed at the bottom.

可以通过PAGE SETUP菜单在Internet Exp中的FILE下)

It is possible to remove this additional as you are printing through the PAGE SETUP menu (under FILE in Internet Exp)

有人知道通过CSS或javascript执行此操作的方法吗?

Does anyone know of a way of doing this via CSS or javascript?

您不能让这些内容因为是用户设置而消失,不会被视为您可以控制的网页的一部分。

You cannot make these things disappear as they are user settings and are not considered part of the page you have control over.

a href =http://css-discuss.incutio.com/wiki/Print_Stylesheets#Print_headers.2Ffooters_and_print_margins =nofollow noreferrer> http://css-discuss.incutio.com/wiki/Print_Stylesheets#Print_headers.2Ffooters_and_print_margins

http://css-discuss.incutio.com/wiki/Print_Stylesheets#Print_headers.2Ffooters_and_print_margins