bootstarp 常用 bage ,它能夠有不一樣顏色的spa
<div class="container">
<div class="row">
<div class="span12">
<p><span class="badge">1</span></p>
<p><span class="badge badge-success">2</span></p>
<p><span class="badge badge-warning">4</span></p>
<p><span class="badge badge-important">6</span></p>
<p><span class="badge badge-info">8</span></p>
<p><span class="badge badge-inverse">10</span></p>
</div>
</div>
</div>class
或者是 使用 label 標籤也是能夠的import
<span class="label label-default">默認標籤</span>
<span class="label label-primary">主要標籤</span>
<span class="label label-success">成功標籤</span>
<span class="label label-info">信息標籤</span>
<span class="label label-warning">警告標籤</span>
<span class="label label-danger">錯誤標籤</span> im
顏色樣式設置:樣式
和按鈕元素button相似,label樣式也提供了多種顏色:di
☑ label-deafult:默認標籤,深灰色ant
☑ label-primary:主要標籤,深藍色標籤
☑ label-success:成功標籤,綠色co
☑ label-info:信息標籤,淺藍色錯誤
☑ label-warning:警告標籤,橙色
☑ label-danger:錯誤標籤,紅色