我想在一个<div class"col-*">
元素中嵌入多个<div class="row">
,这些条件在<div class"col-*">
元素之间左右存在填充。
<div class="row">
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
</div>
答案 0 :(得分:0)
简单地说是一个保证金。
这里是fiddle
<强> HTML:强>
<div class="row">
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
<div class="col-xs-12 col-md-6 color"> sdf sdf sdfds sdf dsf ds fsd sfsd fsd </div>
</div>
<强> CSS:强>
[class^="col-"], [class*=" col-"] {
margin:0 20px;
}