0
我想在引導中製作摺疊導航欄。但我的代碼是不工作:(以下是我的代碼。我不能弄明白哪裏是我錯了,請幫我摺疊導航欄
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Website</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<script type="text/javascript" src="assets/js/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<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="#">Logo</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li><a href="#"><span class="glyphicon glyphicon-briefcase"></span> About</a></li>
<li><a href="#"><span class="glyphicon glyphicon-cog"></span> Services</a></li>
<li><a href="#"><span class="glyphicon glyphicon-envelope"></span> Contact</a></li>
<li><a href="#"><span class="glyphicon glyphicon-globe"></span> Blog</a></li>
</ul>
</div>
</div>
</nav>
</body>
</html>
似乎很好。 [演示](http://www.bootply.com/JDdKU26A1j)。右側,點擊手機圖標。 –