-2
我是一个初学者到web开发。我使用bootstrap(3.3.7)来创建响应式网站。我创建了以下代码来显示简单的菜单,但无法正常工作。下拉菜单不显示
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ICE MOBILE</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<form>
<div class="row">
<div class="col-xs-12">
<ul class="nav nav-pills">
<li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-menu-hamburger"></span> Menu
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#"> Menu-1</a></li>
<li><a href="#"> Menu-2</a></li>
</ul>
</li>
</ul>
</div>
</div>
</form>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
当我点击 “菜单” 它不显示在下拉菜单中。
下拉菜单无法正常工作的原因是什么?
是你的资产所引用的目录? –
你期待什么行为?你遇到什么问题?也许阅读[this](https://stackoverflow.com/help/how-to-ask)并编辑你的问题以求清晰。 – Tijmen
@SanchitPatiyal我已经更新了这个问题。 – HariDev