代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="stylesheet" href="bootstrap.min.css">
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script> -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="//ajax.googleapis.bootcss.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body style="height: 1500px; margin: 50px 0;">
<div class="container">
<h2>Basic Navigation Bar</h2>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="javascript:void(0);">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="javascript:void(0);">Home</a></li>
<li><a href="javascript:void(0);">Page 1</a></li>
<li><a href="javascript:void(0);">Page 2</a></li>
<li><a href="javascript:void(0);">Page 3</a></li>
</ul>
</div>
</nav>
<h2>Inverted Navigation Bar</h2>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="javascript:void(0);">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="javascript:void(0);">Home</a></li>
<li><a href="javascript:void(0);">Page 1</a></li>
<li><a href="javascript:void(0);">Page 2</a></li>
<li><a href="javascript:void(0);">Page 3</a></li>
</ul>
</div>
</nav>
<h2>Fixed Navigation Bar</h2>
<p>The navigation bar can also be fixed at the top or at the bottom of the page.</p>
<p>A fixed navigation bar stays visible in a fixed position (top or bottom) independent of the page scroll.</p>
<p>The <code>.navbar-fixed-top</code> class makes the navigation bar fixed at the top:</p>
<h3>Fixed Top Navbar</h3>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="javascript:void(0);">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="javascript:void(0);">Home</a></li>
<li><a href="javascript:void(0);">Page 1</a></li>
<li><a href="javascript:void(0);">Page 2</a></li>
<li><a href="javascript:void(0);">Page 3</a></li>
</ul>
</div>
</nav>
<h3>Fixed Bottom Navbar</h3>
<nav class="navbar navbar-inverse navbar-fixed-bottom">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="javascript:void(0);">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="javascript:void(0);">Home</a></li>
<li><a href="javascript:void(0);">Page 1</a></li>
<li><a href="javascript:void(0);">Page 2</a></li>
<li><a href="javascript:void(0);">Page 3</a></li>
</ul>
</div>
</nav>
<h2>Navigation Bar With Dropdown</h2>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="javascript:void(0);">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="javascript:void(0);">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">Page 1 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="javascript:void(0);">Page 1-1</a></li>
<li><a href="javascript:void(0);">Page 1-2</a></li>
<li><a href="javascript:void(0);">Page 1-3</a></li>
</ul>
</li>
<li><a href="javascript:void(0);">Page 2</a></li>
<li><a href="javascript:void(0);">Page 3</a></li>
</ul>
</div>
</nav>
<h2>Right Aligned Navigation Bar</h2>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="javascript:void(0);">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="javascript:void(0);">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">Page 1 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="javascript:void(0);">Page 1-1</a></li>
<li><a href="javascript:void(0);">Page 1-2</a></li>
<li><a href="javascript:void(0);">Page 1-3</a></li>
</ul>
</li>
<li><a href="javascript:void(0);">Page 2</a></li>
<li><a href="javascript:void(0);">Page 3</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="javascript:void(0);"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li style="margin-right: 5px;"><a href="javascript:void(0);"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</nav>
<h2>Collapsible Navigation Bar</h2>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="javascript:void(0);">WebSiteName</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="javascript:void(0);">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">Page 1 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="javascript:void(0);">Page 1-1</a></li>
<li><a href="javascript:void(0);">Page 1-2</a></li>
<li><a href="javascript:void(0);">Page 1-3</a></li>
</ul>
</li>
<li><a href="javascript:void(0);">Page 2</a></li>
<li><a href="javascript:void(0);">Page 3</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="javascript:void(0);"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li style="margin-right: 5px;"><a href="javascript:void(0);"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</div>
</nav>
</div>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。