Css Div背景不是';我没准备好
以下是HTML:Css Div背景不是';我没准备好,css,html,Css,Html,以下是HTML: #contentwrapper { background: #111; background: url('~/img/bg-black.png'); width: 100%; } #content { width: 340px; height: 165px; margin: 240px auto; text-align: center; } 试验 我的问题是,我试图将contentwrapper的背景图像设置为给定的链接,但当我运
#contentwrapper {
background: #111;
background: url('~/img/bg-black.png');
width: 100%;
}
#content {
width: 340px;
height: 165px;
margin: 240px auto;
text-align: center;
}
试验
我的问题是,我试图将contentwrapper的背景图像设置为给定的链接,但当我运行它时,它没有显示出来。我试着重写、重新加载、阅读等等。什么都不管用
有什么想法吗?拼写错误
id contentwrapper
<div id="content-wrapper">
<div id="content">
<h1 style="text-align: center">Test</h1>
<div style="clear:both"></div>
</div>
</div>
拼写错误
id contentwrapper
<div id="content-wrapper">
<div id="content">
<h1 style="text-align: center">Test</h1>
<div style="clear:both"></div>
</div>
</div>
尝试删除波浪号(~
)字符,并从站点的根目录映射它。您也可以尝试删除引号或使用双引号,但两种方式都可以:
<div id="content-wrapper">
如果无法从站点的根目录映射,请尝试退出到images目录:
background: url(/images/dialog-gradient-beige.png);
尝试删除波浪号(~
)字符,并从站点的根目录映射它。您也可以尝试删除引号或使用双引号,但两种方式都可以:
<div id="content-wrapper">
如果无法从站点的根目录映射,请尝试退出到images目录:
background: url(/images/dialog-gradient-beige.png);
唉,他只犯了一个错误就失去了他的功能!唉,他只犯了一个错误就失去了他的功能!