Twitter Bootstrap 3.0 how do I “badge badge-important” now

后端 未结 9 1758
执念已碎
执念已碎 2021-01-29 19:01

In version two I could use

badge badge-important

I see that the .badge element no longer has contextual (-success,-primary,etc..) c

9条回答
  •  深忆病人
    2021-01-29 19:45

    In short: Replace badge-important with either alert-danger or progress-bar-danger.

    It looks like this: Bootply Demo.


    You might combine the CSS class badge with alert-* or progess-bar-* to color them:

    With class="badges alert-*"

      badge Info
      badge Success 
      badge Danger   
      badge Warning
    

    Alerts Docu: http://getbootstrap.com/components/#alerts

    With class="badges progress-bar-*" (as suggested by @clami219)

      badge Info
      badge Success
      badge Danger
      badge Warning
    

    Progress-Bar Docu: http://getbootstrap.com/components/#progress-alternatives

提交回复
热议问题