搜尋 Mozilla 技術支援網站

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

Learn More

remove the hint in the address bar

  • 3 回覆
  • 0 有這個問題
  • 79 次檢視
  • 最近回覆由 Giuseppe

more options

Hi, is there a way to remove the hint in the address bar - "search with ... or enter the address", leave only the blinking cursor? thanks.

Hi, is there a way to remove the hint in the address bar - "search with ... or enter the address", leave only the blinking cursor? thanks.
附加的畫面擷圖

被選擇的解決方法

That is the placeholder text that shows the action for the default search engine. Note that CSS code for the user interface goes in userChrome.css, userContent.css is for styling webpages including built-in about pages.

Add CSS code to the userChrome.css file in the chrome folder in the Firefox profile folder. Either of the two codes should work to hide this text.


#urlbar *|input::placeholder {
 color: transparent !important;
 opacity: 0 !important;
}
#urlbar *|input::placeholder:hover {/* add code to override this on hover */}
從原來的回覆中察看解決方案 👍 1

所有回覆 (3)

more options

thank you for your answer, I have userContent.css to improve the design of firefox, can you suggest a solution?

more options

選擇的解決方法

That is the placeholder text that shows the action for the default search engine. Note that CSS code for the user interface goes in userChrome.css, userContent.css is for styling webpages including built-in about pages.

Add CSS code to the userChrome.css file in the chrome folder in the Firefox profile folder. Either of the two codes should work to hide this text.


#urlbar *|input::placeholder {
 color: transparent !important;
 opacity: 0 !important;
}
#urlbar *|input::placeholder:hover {/* add code to override this on hover */}
more options

Thank you, cor-el !