阅读:4394回复:7
请教userChrome.css文件的问题
想设置一下搜索框搜索引擎字体从斜体设置为正常,
.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;}*/ |
|
|
1楼#
发布于:2012-07-12 15:27
.textbox-input{font-style:normal!important} /*NT6 搜尋列引擎文字顯示正體*/
|
|
|
2楼#
发布于:2012-07-12 15:27
|
|
|
3楼#
发布于:2012-07-12 15:27
stylish
|
|
4楼#
发布于: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 |
|
|
5楼#
发布于:2012-07-12 15:27
|
|
|
6楼#
发布于:2012-07-12 15:27
那行本來就不需要,
可以用1行的代碼解決你寫那麼多做啥 <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> 測試在 NT6.1 v13 無誤 |
|
|
7楼#
发布于:2012-07-12 15:27
|
|