Bootstrap历练实例:标签页内的下拉菜单
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Bootstrap历练实例:标签页内的下拉菜单</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="stylesheet" href="bootstrap-3.3.5-dist/css/bootstrap.min.css" />
</head>
<body>
<div class="container">
<h2>标签页内的下拉菜单</h2>
<ul class="nav nav-tabs">
<li><a href="#">Html5</a></li>
<li><a href="#">Css3</a></li>
<li class="dropdown">
<a href="#" id="dLabel" class="dropdown-toggle" data-toggle="dropdown">
Web前端
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li role="presentation">
<a role="menuitem" href="#" tabindex="-1">Html5</a>
</li>
<li role="presentation">
<a role="menuitem" href="#" tabindex="-1">Css3</a>
</li>
<li role="presentation">
<a role="menuitem" href="#" tabindex="-1">JavaScript</a>
</li>
<li role="presentation">
<a role="menuitem" href="#" tabindex="-1">jQuery</a>
</li>
<li role="presentation">
<a role="menuitem" href="#" tabindex="-1">jQueryUI</a>
</li>
<li role="presentation">
<a role="menuitem" href="#" tabindex="-1">Bootstrap</a>
</li>
<li class="divider"></li>
<li role="presentation">
<a role="menuitem" href="#" tabindex="-1">C#.Net</a>
</li>
<li role="presentation">
<a role="menuitem" href="#" tabindex="-1">MsSql</a>
</li>
</ul>
</li>
<li><a href="#">C#.Net</a></li>
</ul>
</div>
<script src="jQuery/jquery-2.1.4.js"></script>
<script src="bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
</body>
</html>