<button type="button" class="btn btn-default" aria-label="Left Align">
<span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default" aria-label="Go to cloud">
<span class="glyphicon glyphicon-cloud" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default" aria-label="Email Me">
<span class="glyphicon glyphicon-envelope" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default" aria-label="Glass, be care">
<span class="glyphicon glyphicon-glass" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default btn-lg">
<span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
</button>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
Enter a valid email address
</div>
示例:
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="false" aria-expanded="true">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li class="dropdown-header">Dropdown header 1</li>
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">苹果</a></li>
<li><a href="#">苹果</a></li>
<li class="disabled"><a href="#">尼玛</a></li>
<li class="dropdown-header">Dropdown header 2</li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/vonzhoufz/article/details/47843395