我有一个网站页脚和房屋图片。所以我的目标是要在愚蠢的人之上树立房屋的形象。现在我的结构看起来像这样:
<div class="footer">
<img class="homes" src="img/homes.png" >
</div>
因此,应在我的css文件中写入什么内容来设置房屋图片,使其比我的页脚还要高
.footer {
background: rgb(59, 59, 59);
}
.homes {
}
.footer {
background: rgb(59, 59, 59);
margin-top:30px;
}
.homes {
margin-top:-30px;
}
<div class="footer">
<img class="homes" src="http://placehold.it/250x100" />
</div>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句