码迷,mamicode.com
首页 > 其他好文 > 详细

Bootstrap 导航栏和登陆框

时间:2015-10-05 16:52:46      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="css/bootstrap.min.css" />
		<script type="text/javascript" src="js/jquery.min.js" ></script>
		<script type="text/javascript" src="js/bootstrap.min.js" ></script>
	</head>
	
	<body>
	<nav class="nav navbar-default navbar-fixed-top" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a href="#" class="navbar-brand">
					<img src="img/mylogo.png" style="height: 50px;margin-top: -15px;"/>
				</a>
			</div>
			<div class="collapse navbar-collapse">
			<ul class="nav navbar-nav">
				<li class="active"><a href="#">首页</a></li>
				<li><a href="#">新闻</a></li>
				<li><a href="#">产品</a></li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">服务<span class="caret"></span></a>
					<ul class="dropdown-menu">
						<li><a href="#">客服在线</a></li>
						<li class="divider"></li>
						<li><a href="#">常见问答</a></li>
						<li class="divider"></li>
						
						<li><a href="#">地址电话</a></li>
					</ul>
					
				</li>
				<li><a href="#">商城</a></li>
			</ul>
			
			<div class="navbar-form navbar-right">
				<a href="#" class="navbar-link">登陆</a>
				<a href="#" class="navbar-link">注册</a>
				<input type="text" class="form-control" placeholder="请输入关键字"/>
				<button class="btn btn-primary">搜索</button>
			</div>
			</div>
		</div>
	</nav>	
		
		<div style="height: 50px;"></div>
		
		<div class="container">			
			<h1 class="page-header"><span class="glyphicon glyphicon-user"></span>用户登录</h1>
			<form class="form-horizontal">
				<div class="form-group">
					<div class="col-md-5">
						<input type="text" class="form-control" placeholder="用户名/email"/>
					</div>
				</div>
				<div class="form-group">
					<div class="col-md-5">
						<input type="password" class="form-control" placeholder="密码"/>
					</div>
				</div>
				<div class="form-group">
					<div class="col-md-5">
					   <button class="btn btn-primary">登陆</button>
					</div>
				</div>								
			</form>
		</div>
		<div style="height: 1500px;"></div>
	</body>
</html>

  

Bootstrap 导航栏和登陆框

标签:

原文地址:http://www.cnblogs.com/doyonevertodo/p/4855831.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!