为了防止图像重叠你需要设置其宽度%
。 这里是我的解决方案:
/* CSS used here will be applied after bootstrap.css */
#g {
background: #f2f2f2;
padding-top: 20px;
padding-bottom: 60px;
}
.text-muted {
color: darkslategray;
}
.sponsor img {
width: 100%;
vertical-align: middle;
margin-bottom: 10px;
}
.sponsor{
height: 80px;
line-height: 80px;
}
<div id="g">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 text-center">
<h3 class="large text-muted">Press and Media</h3>
</div>
</div>
<div class="container-fluid">
<div class="row sponsor centered">
<div class="col-sm-2 col-sm-offset-4 col-xs-8 col-xs-offset-2">
<a href="https://www.google.com">
<img src="http://placehold.it/2000x349" alt="">
</a>
</div>
<div class="col-sm-2 col-sm-offset-0 col-xs-8 col-xs-offset-2 ">
<a href="https://www.google.com">
<img src="http://placehold.it/600x300" alt="">
</a>
</div>
</div>
<!--/row-->
</div>
</div>
嗨@Banzay,这个问题得到了解决,但现在当我减少我的宽度到一定程度时,标识的大小气球回来(到再变小随着你变小)。有什么办法来解决这个/它们限制在一定水平始终? –