在Bootstrap 3中有没有一种方法可以右对齐一个div?
我知道可以使用offset来实现,但是我想将格式化的div与其容器右对齐,同时在全宽度的移动视图中仍应居中显示。类名“pull-right”不再起作用了。他们忘记替换它了,还是我漏掉了显而易见的东西?
<div class="row">
<div class="container">
<div class="col-md-4">
left content
</div>
<div class="col-md-4 col-md-offset-4">
<!-- The next div has a background color and its own paddings and should be aligned right-->
<!-- It is now in the right column but aligned left in that column -->
<div class="yellow_background">right content</div>
</div>
</div>
</div>
我知道如何使用CSS完成这个任务,但是能否只使用纯Bootstrap 3实现呢?