3
<div class="row">
<div ng-repeat="tile in tiles" class="col-md-3"></div>
</div>
如何確保這些引導列始終居中,即使只有2列?中心多個自舉列當小於12列
<div class="row">
<div ng-repeat="tile in tiles" class="col-md-3"></div>
</div>
如何確保這些引導列始終居中,即使只有2列?中心多個自舉列當小於12列
添加row-center
類行和col-center
對col-MD-3這樣:
<div class="row row-center">
<div ng-repeat="tile in tiles" class="col-md-3 col-center"></div>
</div>
.row-center {
text-align:center;
}
.col-center {
display:inline-block;
float:none;
}