gpt4 book ai didi

firefox - PDF.js 中的 mozdisallowselectionprint 属性有什么作用?

转载 作者:行者123 更新时间:2023-12-04 00:41:37 31 4
gpt4 key购买 nike

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

最佳答案

mozDisallowSelectionPrint 属性已添加到 Firefox,以允许网页禁用 Firefox 中的 打印选择 选项。

通常,当您在文档中选择文本然后打开打印对话框时(Ctrl + PCmd + P ),您可以选择“打印范围”下的“选择”选项。

由于 PDF.js 的工作方式,在查看 PDF 文档时选择此选项会导致打印空白页面,或者对于大型文档,会导致浏览器崩溃。

在错误 830278因此决定允许网页(包括 PDF 查看器)通过将此属性添加到 HTML 标记来禁用打印选择的选项。..

Print dialog with the option to print a selection disabled.
(来源:broward.edu)

mozDisallowSelectionPrint 适用于 Firefox 19 及更高版本。

关于firefox - PDF.js 中的 mozdisallowselectionprint 属性有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30097055/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com