如何使用twitter自举右对齐一个元素? [英] How do I right align an element using twitter bootstrap?
本文介绍了如何使用twitter自举右对齐一个元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有3个元素,我尝试将按钮对齐到屏幕右侧,但我遇到了麻烦。
I have 3 elements and I am trying to align the button to the right side of the screen, but am having trouble doing so.
<div class="container">
<div class="row-fluid">
<h4>
<img src="img.png" style="width:50px;">
Title
<a href="link_to_img.html" class="btn btn-success">Grab it!</a>
</h4>
</div>
</div>
推荐答案
尝试类'pull-right' p>
Try the class 'pull-right'.
<div class="pull-right">...</div>
请参阅 http://getbootstrap.com/css/#helper-classes-floats
这篇关于如何使用twitter自举右对齐一个元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文