搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Changing the background color when opening an image?

  • 3 回覆
  • 36 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

I just installed Firefox on my new Windows laptop, and when I open an image in a new tab the background around the image is a dark gray. On my old computer the background is white, which I much prefer. How do I change this setting?

I just installed Firefox on my new Windows laptop, and when I open an image in a new tab the background around the image is a dark gray. On my old computer the background is white, which I much prefer. How do I change this setting?

被選擇的解決方法

It is a new feature in Firefox 11+ versions to display a single image centered with an almost black background.

It is added by this stylesheet:

  • resource://gre/res/TopLevelImageDocument.css

You can look at this extension to set your preferred background color and remove the centering.

See also these forum threads for other solutions (e.g. userContent.css):

從原來的回覆中察看解決方案 👍 7

所有回覆 (3)

more options

選擇的解決方法

It is a new feature in Firefox 11+ versions to display a single image centered with an almost black background.

It is added by this stylesheet:

  • resource://gre/res/TopLevelImageDocument.css

You can look at this extension to set your preferred background color and remove the centering.

See also these forum threads for other solutions (e.g. userContent.css):

more options

Wow, thanks for the quick reply. That add on did exactly what I wanted.