代码编辑器:
1
2
<meta charset="utf-8">
3
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
5
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.js"></script>
6
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
7
<style>body {margin: 0 0 0 8px}</style>
8
<nav id="navbar-example" class="navbar navbar-default navbar-static" role="navigation">
9
<div class="container-fluid">
10
<div class="navbar-header">
11
<button class="navbar-toggle" type="button" data-toggle="collapse"
12
data-target=".bs-js-navbar-scrollspy">
13
<span class="sr-only">切换导航</span>
14
<span class="icon-bar"></span>
15
<span class="icon-bar"></span>
16
<span class="icon-bar"></span>
17
</button>
18
<a class="navbar-brand" href="#">日期</a>