Div背景未设置

Nic*_*rre 0 html css

#contentwrapper {
   background: #111;
   background: url('~/img/bg-black.png');
   width: 100%;
}
#content {
   width: 340px;
   height: 165px;
   margin: 240px auto;
   text-align: center;
}
Run Code Online (Sandbox Code Playgroud)

这是HTML:

<div id="content-wrapper">
<div id="content">
<h1 style="text-align: center">Test</h1>
<div style="clear:both"></div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)

我的问题是我试图将contentwrapper的背景图像设置为给定的链接,但是当我运行它时,它不会显示.我尝试过重写,重新加载,读取等等.什么都行不通

有任何想法吗?

Sim*_*old 5

拼写错误
id contentwrapper

<div id="content-wrapper">
Run Code Online (Sandbox Code Playgroud)