【问题标题】:Change Default Print Page Setup in Portable Firefox更改便携式 Firefox 中的默认打印页面设置
【发布时间】:2011-07-21 16:13:38
【问题描述】:

在便携式 Firefox 5 中,当您打印时,有一个“页面设置”允许您启用打印背景颜色和一个用于更改“边距和页眉/页脚”的选项卡。

问题是:这似乎只为当前会话保存,并在您每次关闭并重新打开便携式 Firefox 时恢复为默认值。有没有办法改变这些默认值,所以它们不需要每次都自定义?我希望将“页眉和页脚”全部设置为 --blank-- 作为默认值,并将“打印背景(颜色和图像)设置为默认选中。

编辑: 我找到了 about:config 并且可以在其中进行页眉和页脚更改,但在重新启动后我再次丢失了这些更改。我在这里没有看到打印背景颜色。

有什么想法吗?

【问题讨论】:

  • 我找到要编辑的部分 Header & Footer 将这些行添加到 Data/Profile 中的默认 prefs.js 仍然没有找到背景颜色部分user_pref("print.print_headerleft", "") user_pref("print.print_headercenter", "") user_pref("print.print_headerright", "") user_pref("print.print_footerleft", ""); user_pref("print.print_footercenter", ""); user_pref("print.print_footerright", "");
  • 修复打印背景我最终发现:user_pref("print.print_bgcolor", true);

标签: firefox portability portable-applications firefox-5


【解决方案1】:

所以我找到了所有答案并将它们发布在这里以防其他人需要此信息:

将以下行添加到默认的 prefs.js 文件中

user_pref("print.print_headerleft", "");
user_pref("print.print_headercenter", "");
user_pref("print.print_headerright", "");
user_pref("print.print_footerleft", "");
user_pref("print.print_footercenter", "");
user_pref("print.print_footerright", "");
user_pref("print.print_bgcolor", true);

您还可以使用以下修改默认边距

user_pref("print.print_margin_bottom", "0.4");
user_pref("print.print_margin_left", "0.4");
user_pref("print.print_margin_right", "0.4");
user_pref("print.print_margin_top", "0.4");

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-17
    • 1970-01-01
    • 1970-01-01
    • 2012-12-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多