如何从打印页面中删除URL? [英] How to remove the URL from the printing page?
本文介绍了如何从打印页面中删除URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想删除打印在页面底部的网址。
I want to remove the URL that gets printed on the bottom of the page.
像:
like:
yomari.com/.../main.php?sen_n
如何省略或防止打印?
更具体地说,在打印网页时,有什么方法可以防止页面URL,日期和页面标题被打印?
To be more specific, is there any way I can prevent the page URL, date and the page title being printed along, while printing the web page?
解决方案
Following code sample will work for you,
type =text / cssmedia =print>
@page {
size:auto; / * auto是初始值* /
margin:0; / *这会影响打印机设置的边距* /
}
< / style>
<style type="text/css" media="print">
@page {
size: auto; /* auto is the initial value */
margin: 0; /* this affects the margin in the printer settings */
}
</style>
see the answer on Disabling browser print options (headers, footers, margins) from page?
这篇关于如何从打印页面中删除URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文