我想知道使用jquery时,div是否受高度限制。
例如,这个div被限制为100 of,不管div的内容大小有100 of高:
<div style="height: 100px;">
bla bla
</div>
这一项不受限制,它的内容高度如下:
<div>
bla bla
</div>
换句话说,我想知道是否通过设置样式属性或使用单独的css样式来设置高度(如果是的话)。谢谢
FF3.6 解决方案FF5 IE8 Chrome12和Opera11 :
f
我正在尝试使用css使html元素具有背景图像,但是如果没有文本,背景就没有背景图像。
CSSS -
#box {
background url(.....)
}
HTML -
<div id="box">something</div> // this works bu it shows the text
<div id="box"></div> // this is what i want not text just the background url from #box
谢谢