在打印网页时删除页面标题和日期(使用CSS?) [英] Removing page title and date when printing web page (with CSS?)

查看:972
本文介绍了在打印网页时删除页面标题和日期(使用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

这篇关于在打印网页时删除页面标题和日期(使用CSS?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆