集合
<div class="collection">
<a href="#!" class="collection-item"><span class="badge">1</span>Alan</a>
<a href="#!" class="collection-item"><span class="new badge">4</span>Alan</a>
<a href="#!" class="collection-item">Alan</a>
<a href="#!" class="collection-item"><span class="badge">14</span>Alan</a>
</div>
下拉菜单中的徽章
下拉菜单arrow_drop_down
<ul id="dropdown2" class="dropdown-content">
<li><a href="#!">one<span class="badge">1</span></a></li>
<li><a href="#!">two<span class="new badge">1</span></a></li>
<li><a href="#!">three</a></li>
</ul>
<a class="btn dropdown-trigger" href="#!" data-target="dropdown2">Dropdown<i class="material-icons right">arrow_drop_down</i></a>
可折叠中的徽章
-
filter_dramaFirst4
Lorem ipsum dolor sit amet.
-
placeSecond1
Lorem ipsum dolor sit amet.
<ul class="collapsible">
<li>
<div class="collapsible-header">
<i class="material-icons">filter_drama</i>
First
<span class="new badge">4</span></div>
<div class="collapsible-body"><p>Lorem ipsum dolor sit amet.</p></div>
</li>
<li>
<div class="collapsible-header">
<i class="material-icons">place</i>
Second
<span class="badge">1</span></div>
<div class="collapsible-body"><p>Lorem ipsum dolor sit amet.</p></div>
</li>
</ul>
选项
自定义标题
您可以使用 data-badge-caption
属性在徽章中明确设置标题。
<span class="new badge" data-badge-caption="custom caption">4</span>
<span class="badge" data-badge-caption="custom caption">4</span>