【问题标题】:What does the moznomarginboxes attribute in PDF.js do?PDF.js 中的 moznomarginboxes 属性有什么作用?
【发布时间】:2014-07-09 20:30:43
【问题描述】:

Firefox 的内置 PDF 查看器PDF.js<html> 标签上具有moznomarginboxes 属性。这个属性有什么作用?

注意:有关 PDF.js 中 HTML 标记的 other 属性的信息,请参阅 What does the mozdisallowselectionprint attribute in PDF.js do?

【问题讨论】:

    标签: firefox printing margins pdf.js printing-web-page


    【解决方案1】:

    mozNoMarginBoxes 属性从 Firefox 版本 22 开始可用。它被添加到 Firefox 以允许网页在打印文档时阻止 Firefox 在页边距中添加 URL、页码和其他内容。

    这是a document without mozNoMarginBoxes的打印预览:

    这是a document with mozNoMarginBoxes的打印预览:

    请注意,最初,在查看打印预览时,网页属性仍显示在页边距中。 This got fixed in Firefox 29.

    【讨论】:

      猜你喜欢
      • 2015-07-17
      • 1970-01-01
      • 2018-05-16
      • 2011-12-17
      • 2019-05-29
      • 2019-10-16
      • 2018-09-08
      • 2016-07-26
      • 1970-01-01
      相关资源
      最近更新 更多