搜尋 Mozilla 技術支援網站

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

了解更多

image not displaying in firefox, working in Chrome & IE (CSS)

  • 2 回覆
  • 12 有這個問題
  • 9 次檢視
  • 最近回覆由 cor-el

more options

This is a long shot, and a cross post from stackoverflow, i'm hoping someone can help

I'm trying to position a temporary 'beta' ribbon image positioned in the top left of a wordpress based site.

The following code functions as intended in Chrome and IE. In Firefox, nothing is appearing:

#page-wrapper:before 
{
  width: 50px;
  content: " ";
  background: url(../../wp-content/uploads/2013/09/betaribbon2.png) no-repeat;
  position: absolute;
  height: 50px;
  pointer-events: none;
}

Can anyone shed light on what I'm doing wrong?

Thanks,

This is a long shot, and a cross post from stackoverflow, i'm hoping someone can help I'm trying to position a temporary 'beta' ribbon image positioned in the top left of a wordpress based site. The following code functions as intended in Chrome and IE. In Firefox, nothing is appearing: #page-wrapper:before { width: 50px; content: " "; background: url(../../wp-content/uploads/2013/09/betaribbon2.png) no-repeat; position: absolute; height: 50px; pointer-events: none; } Can anyone shed light on what I'm doing wrong? Thanks,

由 littlebloke 於 修改

所有回覆 (2)

more options

the above fragment is correct according to me but just make sure you have got your images enabled on your firefox. please make sure that the path for the image is correct. if the problem continue please be free co contact. :-)

more options