bootstrap圖標菜單按鈕組件

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<title>圖標菜單按鈕組件</title>
<link rel="stylesheet" href="css/bootstrap.css">
</head>
<body style="margin:50px;">
<!-- 寫上兩個類名才能顯示出一個星號 -->
<!-- <span class="glyphicon glyphicon-star"></span> -->

<!-- 組合使用 -->
<!-- <button class="btn btn-default btn-lg">
<span class="glyphicon glyphicon-star"></span>
</button> -->javascript

<div class="dropdown">
<button class="btn btn-default" data-toggle="dropdown">
下拉菜單
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="javascript:;">111</a></li>
<li><a href="javascript:;">222</a></li>
<li><a href="javascript:;">333</a></li>
<li><a href="javascript:;">444</a></li>
</ul>
</div>css

<div class="btn-group">
<a href="javascript:;" class="btn btn-default">左</a>
<a href="javascript:;" class="btn btn-default">中</a>
<a href="javascript:;" class="btn btn-default">右</a>
</div>
</body>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</html>html

相關文章
相關標籤/搜索