我下载了 bootstrap 3.0.0,但我无法让我的导航栏下拉菜单工作......还尝试包含 dropdown.js,但它只是不起作用......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" type="text/css" href="bootstrap/dist/css/bootstrap.css" media="screen">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="container">
</div>
<script src="bootstrap/assets/js/jquery.js"></script>
<script type="text/javascript" href="bootstrap/dist/js/bootstrap.js"></script>
</body>
</html>
谢谢你的帮助...
- 因为我不能提交我的问题(太多的代码),所以我正在写这个随机文本来保持代码和它的细节之间的平衡。