【发布时间】:2016-08-05 09:57:17
【问题描述】:
我正在使用col-xs-offset-1 在 xs 屏幕上以块样式布局将每一列居中。但是,在大屏幕上,我使用col-lg-offset-3 以内联方式显示行并在屏幕上居中显示。通过这样做,似乎col-xs-offset-1 覆盖了 col-lg 布局,因此现在大屏幕上的列不再居中(参见图片链接)。这是什么原因造成的?我怎样才能同时拥有它? badges not centered
<div class="container-fluid">
<div class="row">
<div class="list-group">
<div class="col-xs-offset-1 col-xs-10 col-sm-offset-3 col-sm-2 col-md-offset-3 col-md-2 col-lg-offset-3 col-lg-2">
<a href="http://hyperurl.co/cplq6c" class="list-group-item" target="_blank">
<i class="fa fa-apple fa-2x" aria-hidden="true" style="color: whitesmoke;"></i>itunes
</a>
</div>
<div class="col-xs-offset-1 col-xs-10 col-sm-2 col-md-2 col-lg-2">
<a href="http://hyperurl.co/1qcfl6" class="list-group-item" target="_blank">
<i class="fa fa-amazon fa-2x" aria-hidden="true" style="color: #ff9900;"></i>amazon
</a>
</div>
<div class="col-xs-offset-1 col-xs-10 col-sm-2 col-md-2 col-lg-2">
<a href="http://hyperurl.co/mb95g4" class="list-group-item" target="_blank">
<i class="fa fa-google fa-2x" aria-hidden="true" style="color: #34a853;"></i>google play
</a>
</div>
</div>
</div>
</div>
【问题讨论】:
标签: html css twitter-bootstrap col