【问题标题】:Why bootstraps glyphicons breaking the element?为什么引导 glyphicons 破坏元素?
【发布时间】:2013-10-01 00:16:21
【问题描述】:

我尝试了两种不同的变体:

  td
    span.glyphicon.glyphicon-chevron-up 
    span    Search

button#toggle_unimportant_search_params class=["btn", "btn-primary"]
  span.glyphicon.glyphicon-list
  span    Show all parameters

  td
    span.glyphicon.glyphicon-chevron-up Search

button#toggle_unimportant_search_params class=["btn", "btn-primary"]
  span.glyphicon.glyphicon-list Show all parameters

所以看起来带有额外span     的变体看起来更好。但这不是我所知道的引导方式。引导方式是:

<button type="button" class="btn btn-default btn-lg">
  <span class="glyphicon glyphicon-star"></span> Star
</button>

【问题讨论】:

    标签: html twitter-bootstrap fonts slim


    【解决方案1】:

    对这些元素使用苗条语法的正确形式是:

    td
      span.glyphicon.glyphicon-chevron-up 
      |  Search
    

    button#toggle_unimportant_search_params class=["btn", "btn-primary"] type="button"
      span.glyphicon.glyphicon-list
      |  Show all parameters
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-16
      • 2014-05-08
      • 2019-12-11
      • 2023-01-19
      • 2012-03-18
      • 2011-12-11
      • 2015-02-14
      相关资源
      最近更新 更多