搜尋 Mozilla 技術支援網站

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

Learn More

How do I fix washed out colours for outset border in Firefox (vs Chrome)?

  • 3 回覆
  • 1 有這個問題
  • 23 次檢視
  • 最近回覆由 Gerrat

more options

I've created a web page with a very basic table and border-style: outset. The attached image shows three colours ("red", "#2CC11F", and "#22A8D6") of this table, and how they appear on Chrome (left) vs Firefox (right).

The image is a screen capture, taken with both Firefox and Chrome on the same monitor.

I've tried every combination of items listed in the link here: (http://cameratico.com/guides/firefox-color-management/) and restarted Firefox each time, but I simply cannot get it to not display this outset border without looking terrible and washed out.

A solid border looks fine, so this has to do with outset borders specifically (and possibly on tables specifically).

I've created a web page with a very basic table and border-style: outset. The attached image shows three colours ("red", "#2CC11F", and "#22A8D6") of this table, and how they appear on Chrome (left) vs Firefox (right). The image is a screen capture, taken with both Firefox and Chrome on the same monitor. I've tried every combination of items listed in the link here: (http://cameratico.com/guides/firefox-color-management/) and restarted Firefox each time, but I simply cannot get it to not display this outset border without looking terrible and washed out. A solid border looks fine, so this has to do with outset borders specifically (and possibly on tables specifically).
附加的畫面擷圖

被選擇的解決方法

So the problem is that Firefox is choosing shades that are too light compared with Chrome?

I think you'll need to take direct control of the colors of individual sides by using solid borders. For example:

http://jsfiddle.net/kr3gdzhd/

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

所有回覆 (3)

more options

Ok, I guess I found a bug related to this here: Ugly inset and outset borders

This bug first appeared 15 years ago. Astonishing it has not been fixed in 15 years!

more options

選擇的解決方法

So the problem is that Firefox is choosing shades that are too light compared with Chrome?

I think you'll need to take direct control of the colors of individual sides by using solid borders. For example:

http://jsfiddle.net/kr3gdzhd/

more options

Thanks!!!

The workaround was trivial (just never crossed my mind), but Firefox really should choose better shades as a default. These borders do look terrible vs the other major browsers.