视图good.Logo
放置在正确的平面上。但是希望background-color
也比div
宽。 (覆盖浏览器的漏洞)
<div class="col-md-12 bannerwithlogo"></div>
.bannerwithlogo {
height: 65px;
margin-left: -10px;
background: url(//static.websitename.com/css/portals/websiteportal/gfx/logo.png) no-repeat top left;
background-color: #c30c15;
}
答案 0 :(得分:0)
<div class="container-fluid">
<div class="col-md-12 bannerwithlogo"></div>
</div>
CSS
.container-fluid{
height:100px;
background-color: blue;
}
.bannerwithlogo
{
margin:10px 3px 0px 0px;
height: 65px;
background: url(//static.websitename.com/css/portals/websiteportal/gfx/logo.png) no-repeat top left;
background-color: #c30c15;
}