我做了一個獨特的類的div元素,然後我給這個類一個背景圖像,但它不顯示。即使我檢查元素一切都在那裏,除了關於背景圖像的一行。背景不顯示在div
我的代碼:
.godzillahatter{
background-image: url ("http://honlapkell.hu/verzio1/wp-content/uploads/2014/12/dalmatian-texture-1543316.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center; }
檢查元素:
.godzillahatter {
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
}
和URL: http://honlapkell.hu/verzio1/godzilla/
我不知道是什麼問題。 div元素有內容,但我試圖給它的高度和寬度只是肯定的。我尋找解決方案,但沒有一個可行。
如果出現錯誤,我使用不顯示黃色三角形的firefox。這是一個非常有用的信息,你讓我的生活變得更輕鬆。非常感謝你! –