我可以从我的打印css中删除该URL,以便不打印网址吗? [英] Can I remove the URL from my print css, so the web address doesn't print?
问题描述
我写了一些样式表 - 包括print.css - 它工作正常。
I have written some stylesheets - including a print.css - and it's working fine.
我想从每个网页上删除网址。我开始怀疑这是不可能的。是否有一个元素/选项,我可以设置显示:无这样做?
I'd like to remove the URL from printing out on each of the pages. I am beginning to wonder if it is impossible. Is there an element/option that I can set to display:none to do this?
原因是具有'正常'和'打印'样式表已经被特殊格式化,所以当打印时,它形成有意义的小册子。因此,网址是无关紧要的。
The reason is that the specific pages that have a 'normal' and 'print' stylesheet have been specially formatted so when printed, it forms a meaningful booklet. Therefore the URL is irrelevant.
推荐答案
在Firefox中,https://bug743252.bugzilla.mozilla.org/attachment.cgi?id=714383 (查看网页源代码::标记HTML)。
In Firefox, https://bug743252.bugzilla.mozilla.org/attachment.cgi?id=714383 (view page source :: tag HTML).
在您的代码中,用< html moznomarginboxes mozdisallowselectionprint>替换
< html>
。
在其他浏览器中,我不知道,但您可以查看 http://www.mintprintables.com/print-tips/header-footer-windows/
In others browsers, I don't know, but you can view http://www.mintprintables.com/print-tips/header-footer-windows/
这篇关于我可以从我的打印css中删除该URL,以便不打印网址吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!