我正在尝试制作一个网站,但我遇到了引导类的问题。当页面完全打开时,类下拉菜单工作正常,但是当它进入折叠模式时,下拉菜单的列表仍然打开。我应该怎么做才能保持关闭,直到有人点击它?代码如下:
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="iso-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CEDEME</title>
<link href="bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.min.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="navbar navbar-fixed-top navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a href="#" class="brand">CEDEME</a>
<div class="nav-collapse">
<ul class="nav">
<li><a href="#">Home</a></li>
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Pedido de Animais<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Consultar</a></li>
<li><a href="#">Incluir</a></li>
</ul>
</li>
<li><a href="#">Extratos</a></li>
<li><a href="#">Cadastro de Alunos</a></li>
<li><a href="#">Previsão de Animais</a></li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>