【发布时间】:2013-07-02 22:57:09
【问题描述】:
我无法在 Bootstrap 框架下的按钮中垂直对齐字体真棒图标和文本。我已经尝试了很多东西,包括设置行高,但没有任何效果。
<button id="edit-listing-form-house_Continue"
class="btn btn-large btn-primary"
style=""
value=""
name="Continue"
type="submit">
Continue
<i class="icon-ok" style="font-size:40px;"></i>
</button>
我怎样才能让它工作?
【问题讨论】:
-
你可以简单地使用 flex 方法:css-tricks.com/snippets/css/a-guide-to-flexbox
标签: twitter-bootstrap alignment webfonts font-awesome