搜尋 Mozilla 技術支援網站

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

Learn More

Svg Image not Displaying Correctly in Firefox 58.0.1

  • 2 回覆
  • 2 有這個問題
  • 197 次檢視
  • 最近回覆由 James2018

more options

I've noticed that a website logo has stopped displaying in Firefox possibly since the 58.0.1 update. It used to display fine until recently. The file displays ok in all the other top browsers.

See this link: https://jsfiddle.net/James2015/256mdLvz/ and view in Firefox then Chrome etc.

I've noticed that a website logo has stopped displaying in Firefox possibly since the 58.0.1 update. It used to display fine until recently. The file displays ok in all the other top browsers. See this link: https://jsfiddle.net/James2015/256mdLvz/ and view in Firefox then Chrome etc.

被選擇的解決方法

Your svg file is wrong. You have to remove this:

 <defs class="ClipPathGroup">
 <clipPath id="a">
  <rect width="22600" height="12600"/>
 </clipPath>
</defs>

and all occurences of

clip-path="url(#a)"

and it'll be OK.

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

所有回覆 (2)

more options

選擇的解決方法

Your svg file is wrong. You have to remove this:

 <defs class="ClipPathGroup">
 <clipPath id="a">
  <rect width="22600" height="12600"/>
 </clipPath>
</defs>

and all occurences of

clip-path="url(#a)"

and it'll be OK.

more options

Thank you, worked perfectly.