隐藏正在打印的网络网址 [英] Hide Web Url On Print

查看:213
本文介绍了隐藏正在打印的网络网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从Internet Explorer打印网页时,它将自动添加页眉和页脚,包括网站标题,URL,日期和页码.

When I print a webpage from Internet Explorer it will automatically add a header and footer including the website title, URL, date, and page number.

Is it possible to hide the header and footer programatically using Javascript or CSS?

推荐答案



我想您cannot从您的asp.net页处理这种客户端浏览器设置,而不是CSS或javascript.如果打印出来的图像没有页眉和页脚,则必须更改客户端浏览器的设置.转到File - PageSetup,将页眉和页脚设置为空.

希望对您有所帮助.
Hi,

I guess you cannot handle this kind of client browser setting from your asp.net page niether from CSS or javascript. if the print should come without headers and footers, then you have to change the setting of the client browser. Goto File - PageSetup, make header and footer as empty.

hope it helps.




看看下面的讨论,

http://forums.asp.net/t/1421429.aspx [ http://stackoverflow.com/questions/4359643/remove- -url-date-page-no-while-take-print [
Hi,

Have a look at below discussions,

http://forums.asp.net/t/1421429.aspx[^]

http://stackoverflow.com/questions/4359643/remove-the-url-date-page-no-while-taking-print[^]

Hope you got answer from first URL.


这篇关于隐藏正在打印的网络网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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