Bootstrap历练实例:导航内下拉菜单的用法

时间:2021-09-07 06:07:28

<!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">
<nav role="navigation" class="navbar navbar-default">
<div class="navbar-header">
<a class="navbar-brand" href="#">w3cSchool</a>
</div>
<div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Html5</a></li>
<li><a href="#">Css3</a></li>
<li class="dropdown">
<a id="dLabel" class="dropdown-toggle" data-toggle="dropdown" href="#">
w3cschool
<span class="caret"></span>
</a>
<ul role="menu" class="dropdown-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 role="presentation" class="divider"></li>
<li role="presentation">
<a role="menuitem">C#.Net</a>
</li>
<li role="presentation">
<a role="menuitem">MsSql</a>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</div>
<script src="jQuery/jquery-2.1.4.js"></script>
<script src="bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
</body>
</html>