我在页面上添加了两个dropdown的下来菜单,但是在浏览时,点击没有反应,并不能出发下拉效果
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>布鲁斯人生-人生需要一个态度,玩命折腾就对了。</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/mycss.css" rel="stylesheet" type="text/css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-default"><div class="container-fluid">
<div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#my-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button><a></a>
</div>
<div class="collapse navbar-collapse" id="my-collapse-1">
<ul class="nav navbar-nav">
<li><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" role="button" aria-haspopup="true" aria-expanded="false">有话要说<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="">闲言碎语</a></li>
<li><a href="">偶有所想</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">技术人生<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="">营销推广</a></li>
<li><a href="">程序应用</a></li>
<li><a href="">网站运营</a></li>
</ul>
</li>
<li><a href="">工作感悟</a></li>
<li><a href="">每日一记</a></li>
<li><a href="">找到我</a></li>
</ul>
</div>
</div></nav>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery-3.1.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
代码没问题啊,我直接运行你的可以出来和下拉的。