我正在尝试使用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
谢谢
我正在使用Bootstrap,并且有一个类似于此的布局:
<div class="container stamp">
<div class="row">
Some header text
</div>
<div class="row" style="background-color:black">
More header text here
</div>
<div class="