【问题标题】:How to print html without the additions of browsers如何在不添加浏览器的情况下打印 html
【发布时间】:2013-03-28 22:45:30
【问题描述】:

当我想打印一个 html 页面时,每个浏览器都会在页面的最顶部或最底部添加网站的 url 和标题。 如何仅打印我所看到的 html 页面?

【问题讨论】:

    标签: javascript html css


    【解决方案1】:

    例如,在 Firefox 中,当您尝试预览时,您可以单击“页面设置”-> 第二个选项卡是页眉/页脚,您可以在此处选择要在打印件的最顶部或最底部显示的内容页面,如果您在所有字段中选择空白,页脚和页眉将被清除所有数据,您只能打印您看到的内容:)

    您也可以尝试以下主题中的建议解决方案:

    Remove the default browser header and footer when printing HTML

    Can I remove the URL from my print css, so the web address doesn't print?

    Remove the default browser header and footer when printing HTML

    Disabling browser print options (headers, footers, margins) from page?

    Remove header and footer in html to print page

    我希望它们有用:)

    【讨论】:

    • 谢谢,我可以通过不从浏览器编码来做到这一点吗?
    • 这似乎没有标准解决方案:)。毕竟谢谢
    猜你喜欢
    • 2012-04-25
    • 1970-01-01
    • 2016-05-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-13
    • 1970-01-01
    相关资源
    最近更新 更多