Bootstrap历练实例:响应式导航(带有表单)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible"content="IE-edge" />
<meta name="viewport"content="width=device-width,initial-scale=1.0" />
<title>Bootstrap历练实例:响应式导航(带有表单)</title>
<meta charset="utf-8" />
<!--[if lt IE 9]-->
<script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
<script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.js"></script>
<!--[endif]-->
<link rel="stylesheet"href="bootstrap-3.3.5/dist/css/bootstrap.min.css" />
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top"role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button"class="navbar-toggle"data-toggle="collapse"data-target="#navbar">
<span class="sr-only">切换导航</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#" class="navbar-brand">某管理系统</a>
</div>
<div class="navbar-collapse collapse"id="navbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">首页</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle"data-toggle="dropdown">功能<span class="caret"></span></a>
<ul class="dropdown-menu"role="menu">
<li><a href="#">业务功能</a></li>
<li><a href="#">信息建立</a></li>
<li><a href="#">信息查询</a></li>
<li><a href="#">信息管理</a></li>
<li class="divider"></li>
<li><a href="#">系统功能</a></li>
<li><a href="#">系统设置</a></li>
</ul>
</li>
<li><a href="#">帮助</a></li>
</ul>
<form class="navbar-form navbar-right"role="form">
<div class="form-group">
<input type="text"class="form-control" placeholder="用户名"/>
<input type="text"class="form-control"placeholder="密码" />
</div>
<button type="submit" class="btn btn-default">登录</button>
</form>
</div>
</div>
</nav>
<script src="jQuery/jquery-2.1.4.js"></script>
<script src="bootstrap-3.3.5/dist/js/bootstrap.min.js"></script>
</body>
</html>