工作,我需要设置我使用background: url('images/something.jpg')[..];
奇怪的CSS问题 - 背景属性不无图像高度
铁图像height
每次。
HTML:
<div class="someImage"></div>
CSS:
.someImage {
background: url('images/something.jpg') no-repeat top;
}
上面的例子应该工作...但不能显示图像,直到我添加图像height
属性的CSS样式类:
.someImage {
background: url('images/something.jpg') no-repeat top;
height: 25px;
}
然后我的图片出现在网站上...
为什么它会发生?