Html 我的页脚背景图像未显示
我的css代码Html 我的页脚背景图像未显示,html,css,Html,Css,我的css代码 .footer容器{ 背景:url(../images/footer.jpg);} html代码 要以id为目标,必须使用哈希: #footer-container{ background: url(../images/footer.jpg);} 或将id更改为类属性: <div class="footer-container"> 您的css有一个页脚容器类,HTML有一个页脚容器ID,因此您可能需要检查它。应该是: #footer-container{ ba
.footer容器{
背景:url(../images/footer.jpg);}
html代码
要以id为目标,必须使用哈希:
#footer-container{ background: url(../images/footer.jpg);}
或将id更改为类属性:
<div class="footer-container">
您的css有一个页脚容器类,HTML有一个页脚容器ID,因此您可能需要检查它。应该是:
#footer-container{ background: url(../images/footer.jpg);}
ids使用
#
范例
#页脚容器{…}
类使用
范例
.footer容器{…}