【问题标题】:Twitter Bootstrap 3.0 equivalent of the "label-important" classTwitter Bootstrap 3.0 相当于“label-important”类
【发布时间】:2013-09-19 22:24:34
【问题描述】:

以下代码的 Bootstrap 3 等效项是什么?

<span class="label label-important">Important</span>

【问题讨论】:

    标签: css twitter-bootstrap twitter-bootstrap-3


    【解决方案1】:

    显然,在 Twitter Bootstrap 3 中,标签的一些 CSS 类发生了变化。新的有:

    • label-default
    • label-primary(Bootstrap 3 中的新功能)
    • label-success
    • label-info
    • label-warning
    • label-danger(以前是label-important

    此外,label-inverse 已从 Bootstrap 3 中完全删除。

    因此,与问题中的代码等效的 Bootstrap 3 将是:

    <span class="label label-danger">Important</span>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-11
      • 1970-01-01
      • 2014-05-23
      • 2013-08-26
      • 2014-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多