我做了一个独特的类的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。这是一个非常有用的信息,你让我的生活变得更轻松。非常感谢你! –