【问题标题】:How can I wrap a glyphicon with twitter bootstrap?如何用 twitter bootstrap 包装一个字形图标?
【发布时间】:2012-10-25 11:50:38
【问题描述】:

如何将字形图标和单词包装在一起,以使图标位于单词上方或下方的中心。举个例子:

    <div class="row">
   <div class="span4">
<div style="font-size: 60px;">
<i class="icon-camera-retro"></i> </p>
 <h1>Photography </h1>
</div>
</div>
<div class="span4">
 <div style="font-size: 60px;">
 <i class="icon-camera"></i> </p>
  <h1>Rentals</h1>
  <p></center></p>
  </div>
 </div>
 <div class="span4">
 <div style="font-size: 60px;">
 <i class="icon-star-empty"></i> </p>
 <h1>Dance Media</h1>
 <p></center></p>
   </div>​

【问题讨论】:

    标签: css twitter-bootstrap glyph font-awesome


    【解决方案1】:

    如果我正确理解您的问题,您需要将text-align: center; 放在包含文本和图标的 div 中。看看这个例子:http://jsfiddle.net/rahjU/11/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-03-02
      • 2015-06-27
      • 2013-11-23
      • 2012-12-23
      • 2012-09-07
      • 1970-01-01
      • 2013-09-04
      相关资源
      最近更新 更多