liuxb
非常火狐
非常火狐
  • UID26160
  • 注册日期2008-09-05
  • 最后登录2021-12-02
  • 发帖数659
  • 经验324枚
  • 威望0点
  • 贡献值184点
  • 好评度16点
阅读:4395回复:7

请教userChrome.css文件的问题

楼主#
更多 发布于:2012-07-12 15:27
想设置一下搜索框搜索引擎字体从斜体设置为正常,
.autocomplete-textbox {font-style:normal !important;}
结果弄了一下午没搞定,最后才发现是userchrome。css文件最前面属于“预设内容”中的一行在作祟,
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
如果把这行注释掉就好了。

请问下这行有用没?为什么和上面那个改斜体的css冲突啊?能不能删掉?
但是注释中又说“Do not remove the @namespace line -- it's required for correct functioning”。。。



/*
 * 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 */

/*
 * For more examples see http://www.mozilla.org/unix/customizing.html
 */

/*#toolbar-menubar[autohide="true"] {display:none !important;}*/

/*scrollbar {opacity: .5 !important;}*/
我的...
liuxb
非常火狐
非常火狐
  • UID26160
  • 注册日期2008-09-05
  • 最后登录2021-12-02
  • 发帖数659
  • 经验324枚
  • 威望0点
  • 贡献值184点
  • 好评度16点
1楼#
发布于:2012-07-12 15:27
taglife:.textbox-input{font-style:normal!important} /*NT6 搜尋列引擎文字顯示正體*/回到原帖


.textbox-input 我也试过了,和.autocomplete-textbox的结果一样,都必须要注释掉userchrome.css中下面这一行
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
才能起作用。
不知道是不是和系统有关,用的是win8。
我的...
liuxb
非常火狐
非常火狐
  • UID26160
  • 注册日期2008-09-05
  • 最后登录2021-12-02
  • 发帖数659
  • 经验324枚
  • 威望0点
  • 贡献值184点
  • 好评度16点
2楼#
发布于:2012-07-12 15:27
上两个图,firefox16 32位,win8 64位。

#appmenu-button和。urlbar-input是参考用的。
图中.urlbar-input前面忘了加.了,又重试了下,结果是一样的。

第一个图是没有注释掉那行的,.autocomplete-textbox, .textbox-input, .urlbar-input都不起作用, 但是#appmenu-button那行可以生效。

图片:Untitled11.png



第二个图是注释掉第一行的,所有的语句都生效了。

图片:Untitled22.png

我的...
liuxb
非常火狐
非常火狐
  • UID26160
  • 注册日期2008-09-05
  • 最后登录2021-12-02
  • 发帖数659
  • 经验324枚
  • 威望0点
  • 贡献值184点
  • 好评度16点
3楼#
发布于:2012-07-12 15:27
royallin:stylish回到原帖


为什么不能用userchrome.css?

不过受了启发用UserCSSLoader脚本解决了。
我的...
游客

返回顶部