LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2625|回复: 30

修改 Firefox 和 Mozilla 菜单和对话框字体的方法

[复制链接]
发表于 2004-10-5 02:23:16 | 显示全部楼层 |阅读模式
看来不止我一个人,而是许多人想修改 Firefox 和 Mozilla 的菜单和对话框的字体。方法是这样的:

- 打开 ~/.mozilla/default/config_directory/chrome 或 ~/.mozilla/firefox/config_directory/chrome,这里 config_directory 是你的 Mozilla 或 Firefox 正在使用的配置文件的目录。

- 你会看到像 userChrome-example.css 这样的文件。执行 cp userChrome-example.css userChrome.css 建立一个实际的配置文件。

- 在这个文件中,会有下面这样的行:
  1. /*
  2. * Make all the default font sizes 20 pt:
  3. *
  4. * * {
  5. *   font-size: 20pt !important
  6. * }
  7. */
复制代码

只要修改它,你就可以改变 Mozilla 或 Firefox 菜单和对话框的字体了。举例来说,我是这样修改的:
  1. /*
  2. * Make all the default font sizes 20 pt:
  3. */
  4. * {
  5.     font-size: 20pt !important;
  6.     font-family: SimSun !important
  7. }
复制代码
发表于 2004-10-5 11:37:35 | 显示全部楼层
我改了,没起作用阿,好奇怪。
 楼主| 发表于 2004-10-5 12:31:06 | 显示全部楼层
请说说你修改的过程好吗?不奏效是不太可能的,我已经试过了。
发表于 2004-10-5 14:24:04 | 显示全部楼层
我进到/home/keke/.mozilla/firefox/vqzn39zh.default/chrome目录下,什么都没有,然后我在/home/keke/.mozilla/default/vcb0iacy.slt/chrome下面找到了这个文件userChrome-example.css
然后我把他考到/home/keke/.mozilla/firefox/vqzn39zh.default/chrome/userChrome.css
然后修改成你贴的那样

#firefox
还是一样

好奇怪

谢谢!!!
发表于 2004-10-5 14:42:39 | 显示全部楼层
好,我也要试试,为这个烦了很久呢。
发表于 2004-10-5 16:49:37 | 显示全部楼层
 楼主| 发表于 2004-10-5 17:34:07 | 显示全部楼层
最初由 Joker_cn 发表
我进到/home/keke/.mozilla/firefox/vqzn39zh.default/chrome目录下,什么都没有,然后我在/home/keke/.mozilla/default/vcb0iacy.slt/chrome下面找到了这个文件userChrome-example.css
然后我把他考到/home/keke/.mozilla/firefox/vqzn39zh.default/chrome/userChrome.css
然后修改成你贴的那样

#firefox
还是一样

好奇怪

谢谢!!!


麻烦把你修改完的 userChrome.css 贴出来。不过我想有了 carlos 大侠的帖子,你可以修改更多的东西了。;)
发表于 2004-10-5 18:35:19 | 显示全部楼层
/*
* Edit this file and copy it as userChrome.css into your
* profile-directory/chrome/
*/

/*
* This file can be used to customize the look of Mozilla's user interface
* You should consider using !important on rules which you want to
* override default settings.
*/

/*
* Do not remove the @namespace line -- it's required for correct functioning
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */


/*
* Some possible accessibility enhancements:
*/
/*
* Make all the default font sizes 20 pt:
*/
* {
   font-size: 20pt !important
   font-family: Simsun !important
}

/*
* Make menu items in particular 15 pt instead of the default size:
*
* menupopup > * {
*   font-size: 15pt !important
* }
*/
/*
* Give the Location (URL) Bar a fixed-width font
*
* #urlbar {
*    font-family: monospace !important;
* }
*/

/*
* Eliminate the throbber and its annoying movement:
*
* #throbber-box {
*   display: none !important;
* }
*/

/*
* For more examples see http://www.mozilla.org/unix/customizing.html
*/
发表于 2004-10-5 18:39:13 | 显示全部楼层
最简单的方法:在地址栏中输入 about:config
 楼主| 发表于 2004-10-5 19:11:36 | 显示全部楼层
最初由 Joker_cn 发表
/*
* Make all the default font sizes 20 pt:
*/
* {
   font-size: 20pt !important;
   font-family: SimSun !important
}

这里应该有个分号。还有,是不是“SimSun”啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表