我希望在按钮之间留出空白,是否有使用Bootstrap的方法可以使它们在不同屏幕分辨率下保持一致。
我尝试使用margin-left
,但这是正确的方法吗?
这里是演示
HTML:
<div class="btn-toolbar text-center well">
<button type="button" class="btn btn-primary btn-color btn-bg-color btn-sm col-xs-2 margin-left">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> ADD PACKET
</button>
<button type="button" class="btn btn-primary btn-color btn-bg-color btn-sm col-xs-2 margin-left">
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span> EDIT CUSTOMER
</button>
<button type="button" class="btn btn-primary btn-color btn-bg-color btn-sm col-xs-2 margin-left">
<span class="glyphicon glyphicon-time" aria-hidden="true"></span> HISTORY
</button>
<button type="button" class="btn btn-primary btn-color btn-bg-color btn-sm col-xs-2 margin-left">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> DELETE CUSTOMER
</button>
</div>
CSS:
(CSS层叠样式表).margin-left{
margin-left: 80px !important;
}
##bootstrap IRC
上得到其他人的反馈后,我决定现在采用margin-left
。谢谢大家... - Vaibhav Jain