我正在尝试删除缩略图网格行之间的垂直空间,就像我在水平方向上所做的那样,但没有成功。
.gutter-0.row {
margin-right: 0;
margin-left: 0;
/* not working */
margin-top: 0;
margin-bottom: 0;
}
.gutter-0 > [class^="col-"], .gutter-0 > [class^=" col-"] {
padding-right: 0;
padding-left: 0;
/* not working */
padding-top: 0;
padding-bottom: 0;
}
HTML
<div class="row gutter-0">
<div class="col-md-4">
<div class="thumbnail">
<img src="http://placehold.it/200x200" alt="">
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<img src="http://placehold.it/200x200" alt="">
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<img src="http://placehold.it/200x200" alt="">
</div>
</div>
</div>
<div class="row gutter-0">
<div class="col-md-4">
<div class="thumbnail">
<img src="http://placehold.it/200x200" alt="">
</div>
</div>
<div class="col-md-4 col-sm-4">
<div class="thumbnail">
<img src="http://placehold.it/200x200" alt="">
</div>
</div>
<div class="col-md-4 col-sm-4">
<div class="thumbnail">
<img src="http://placehold.it/200x200" alt="">
</div>
</div>
</div>
我该怎么办? 谢谢
答案 0 :(得分:2)
答案 1 :(得分:2)
.thumbnail
有20px的底部保证金。重置它或使用以下样式。
.thumbnail{
display: table-cell;
}