简体   繁体   English

更改便携式 Firefox 中的默认打印页面设置

[英]Change Default Print Page Setup in Portable Firefox

In portable Firefox 5 when you print there is the "Page Setup" that allows you to enable print background colors and a tab to change "Margins & Header/Footer".在便携式 Firefox 5 中,当您打印时,有“页面设置”允许您启用打印背景 colors 和一个用于更改“边距和页眉/页脚”的选项卡。

The questions is: This only seems to save for the current session and reverts back to a default each time you close and reopen portable firefox.问题是:这似乎只为当前的 session 保存,并且每次关闭并重新打开便携式 firefox 时都会恢复为默认值。 Is there a way to change these defaults so they don't need to be customized each time?有没有办法改变这些默认值,所以它们不需要每次都自定义? I would like to have the "Headers & Footers" all set to --blank-- as the default and "Print Background (colors and images) set to checked as the default.我希望将“页眉和页脚”全部设置为 --blank-- 作为默认值,并将“打印背景(颜色和图像)设置为选中作为默认值。

EDIT: I found the about:config and can make the Header & Footer changes in there but again I lose those changes after restarting.编辑:我找到了 about:config 并且可以在其中进行 Header 和页脚更改,但在重新启动后我再次丢失了这些更改。 I am not seeing the print background colors in here though.我在这里没有看到打印背景 colors。

Any ideas?有任何想法吗?

So I found all the answers and will post them here just in case others need this info:所以我找到了所有答案,并将它们发布在这里,以防其他人需要这些信息:

Add the following lines to the default prefs.js file将以下行添加到默认 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);

You could also modify the default margins using the below您还可以使用以下内容修改默认边距

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");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM