bootstrap之 Badge 角标

添加 .am-badge class 到 <div> 或者 <span> 元素。

默认样式

 
 
<span class="am-badge">1</span>
<span class="am-badge am-badge-primary">2</span>
<span class="am-badge am-badge-secondary">3</span>
<span class="am-badge am-badge-success">4</span>
<span class="am-badge am-badge-warning">5</span>
<span class="am-badge am-badge-danger">6</span>
<span class="am-badge am-badge-success">Allmobilize</span>
<br>
<a class="am-badge am-badge-primary">Free</a>
<a class="am-badge am-badge-secondary">Secondary</a>
<a class="am-badge am-badge-success">Success</a>
<a class="am-badge am-badge-warning">Warning</a>
<a class="am-badge am-badge-danger">Danger</a>

圆角样式

在默认样式的基础上添加 .am-radius class。

<span class="am-badge am-radius">1</span>
<span class="am-badge am-badge-primary am-radius">2</span>
<span class="am-badge am-badge-secondary am-radius">3</span>
<span class="am-badge am-badge-success am-radius">4</span>
<span class="am-badge am-badge-warning am-radius">5</span>
<span class="am-badge am-badge-danger am-radius">6</span>
<span class="am-badge am-badge-success am-radius">Allmobilize</span>
<br>
<a class="am-badge am-badge-primary am-radius">Free</a>
<a class="am-badge am-badge-secondary am-radius">Secondary</a>
<a class="am-badge am-badge-success am-radius">Success</a>
<a class="am-badge am-badge-warning am-radius">Warning</a>
<a class="am-badge am-badge-danger am-radius">Danger</a>

直角样式

在默认样式的基础上添加 .am-square class。

<span class="am-badge am-square">1</span>
<span class="am-badge am-badge-primary am-square">2</span>
<span class="am-badge am-badge-secondary am-square">3</span>
<span class="am-badge am-badge-success am-square">4</span>
<span class="am-badge am-badge-warning am-square">5</span>
<span class="am-badge am-badge-danger am-square">6</span>
<span class="am-badge am-badge-success am-square">Allmobilize</span>
<br>
<a class="am-badge am-badge-primary am-square">Free</a>
<a class="am-badge am-badge-secondary am-square">Secondary</a>
<a class="am-badge am-badge-success am-square">Success</a>
<a class="am-badge am-badge-warning am-square">Warning</a>
<a class="am-badge am-badge-danger am-square">Danger</a>
posted @ 2016-07-30 11:20  JokerJason  阅读(17307)  评论(0编辑  收藏  举报

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things