#contentwrapper {
background: #111;
background: url('~/img/bg-black.png');
width: 100%;
}
#content {
width: 340px;
height: 165px;
margin: 240px auto;
text-align: center;
}
这是HTML:
<div id="content-wrapper">
<div id="content">
<h1 style="text-align: center">Test</h1>
<div style="clear:both"></div>
</div>
</div>
我的问题是我试图将 contentwrapper 的背景图像设置为给定的链接,但是当我运行它时,它没有显示出来。我尝试重写、重新加载、读取等。没有任何效果
有任何想法吗?