Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

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

Learn More

What code do I need to edit to change the long press color (orange) to one that works better with my website?

  • 4 回覆
  • 5 有這個問題
  • 6 次檢視
  • 最近回覆由 m_vance

more options

I am building a custom website for a client to be used exclusively for Firefox on an Android tablet. When a link is long pressed, its background color always turns to the Mozilla orange. This color goes against the client's palette and looks out of place. Is there CSS code to manipulate to alter this color state?

I am building a custom website for a client to be used exclusively for Firefox on an Android tablet. When a link is long pressed, its background color always turns to the Mozilla orange. This color goes against the client's palette and looks out of place. Is there CSS code to manipulate to alter this color state?

所有回覆 (4)

more options

Website designers cannot change the focus ring color.

more options

Is there another way to change or remove the focus ring color (besides CSS) ?

more options

I believe

   -moz-user-select:-moz-none

will give you the behavior you want.

https://developer.mozilla.org/en-US/docs/CSS/user-select

more options

Unfortunately, this does not work either.

The -webkit version of this works in Chrome for Android, though it also disables the link.