当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

How to change background color of bookmark menus?

  • 10 件の返信
  • 47 人がこの問題に困っています
  • 1 回表示
  • 最後の返信者: cor-el

more options

How do I change the background color (in the userchrome) of the bookmark folder menus? I'm not talking about the bookmark sidebar background color, I'm talking about when you have a folder in your bookmark bar and click on it, the drop down background color.

I don't want to have to change themes, I know there is a way to "hack" or over ride the current color without having to change the theme. Also, changing my computer settings don't do crap, it has nothing to do with the colors of my browser.

Thanks for your help in advance.

How do I change the background color (in the userchrome) of the bookmark folder menus? I'm not talking about the bookmark sidebar background color, I'm talking about when you have a folder in your bookmark bar and click on it, the drop down background color. I don't want to have to change themes, I know there is a way to "hack" or over ride the current color without having to change the theme. Also, changing my computer settings don't do crap, it has nothing to do with the colors of my browser. Thanks for your help in advance.

すべての返信 (10)

more options

Are you talking about the Bookmarks menu on the Menu Bar or about the menu of a folder item on the Bookmarks Toolbar?

#personal-bookmarks menupopup {
 color:#000 !important;
 background-color: #e8e8ff !important;
}

#bookmarksMenuPopup,
#bookmarksMenuPopup menupopup {
 color:#000 !important;
 background-color: #e8e8ff !important;
}
more options

The menu of a folder item on the bookmarks toolbar, as in the dropdown menu you get when you click on a folder in the bookmarks toolbar. I tried both of those in the userChrome and it didn't change the back ground color.

more options

Are you using the default theme (Tools > Add-ons > Themes) or a custom theme?

The #personal-bookmarks code should work for the Bookmarks Toolbar.

more options

Yes, I disabled everything and switched to the default theme and it still did not work.

more options

That didn't work but I used this code and it worked, not sure why since it is basically the same thing:

  1. bookmarksMenuPopup menupopup arrowscrollbox,
  2. personal-bookmarks menupopup arrowscrollbox {

background-color:#ffc !important; }

この投稿は aptharsia により に変更されました

more options

Does other code that you place in userChrome.css work ?

Make sure that the file has a @namespace line at the begin of the userChrome.css file.

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */


See also http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

この投稿は cor-el により に変更されました

more options

How do I change ALL the drop-down menus' background color (File, Edit, View, etc.)?

more options

Code like this should work for the menu bar:

#main-menubar menupopup {
 color:#000 !important;
 background-color: #e8e8ff !important;
}
more options

cor-el, thank you! Your code worked, but you have to add arrowscrollbox after menupopup.

  1. main-menubar menupopup arrowscrollbox {
color:#000 !important;
background-color: #e8e8ff !important;

}

more options

I hadn't checked the CSS code, but I see (-moz-appearance: menupopup;) for the menupopup, so that is the most likely cause that you need to specifiy the next (child) element.

Adding -moz-appearance: none!important; should make it work in such cases.