搜尋 Mozilla 技術支援網站

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

Learn More

CSS doesn't work in firefox when it works perfectly chrome or safari .

  • 2 回覆
  • 9 有這個問題
  • 1174 次檢視
  • 最近回覆由 RAW_

more options

I can't make this CSS appear in firefox when it works perfectly in chrome or safari .site-branding a{content: url (XX);} have been trying to fix it with some informations that i got as

.site-branding a:before { 

content: url("");}

But nothing work out.

If anyone has an idea.

I can't make this CSS appear in firefox when it works perfectly in chrome or safari .site-branding a{content: url (XX);} have been trying to fix it with some informations that i got as .site-branding a:before { content: url("");} But nothing work out. If anyone has an idea.

被選擇的解決方法

Can you post a link to a publicly accessible page (i.e. no authentication or signing on required) where we can check this?

Note that content only works with ::before or ::after pseudo elements and may not work with all element types, but should work with an 'a' tag.

Do you want to display an image before the link?

See also:

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

所有回覆 (2)

more options

選擇的解決方法

Can you post a link to a publicly accessible page (i.e. no authentication or signing on required) where we can check this?

Note that content only works with ::before or ::after pseudo elements and may not work with all element types, but should work with an 'a' tag.

Do you want to display an image before the link?

See also:

more options

Hello, Thank you for your answer. i actually find away to fix it, i'm using a wordpress so i fixed it like

/**chrome'**/ .page-id-HP .site-branding a{ content: url(""); } /**firefox**/ .page-id-HP .site-branding a:before { content: url(""); } .page-id-HP img[src*=""] {

   display: none;

} Thanks again.