我正在制作一个ASP.NET网页,其中包含使用引导程序4的导航栏。 当屏幕较小时,出现切换按钮,但是单击时什么也没发生,看起来它试图显示菜单选项,但是什么也没发生。 导航器位于form标记内,如果我将导航栏放在form标记外,一切正常。
有人可以告诉我这里发生了什么吗,我现在不知道了,谢谢
<head runat="server">
<title>Inicio</title>
<!-- Required meta tags -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<script src="Scripts/jquery-3.0.0.min.js"></script>
<script src="Scripts/umd/popper.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<link href="css/Custom.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<div>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a href="#" class="navbar-brand">Title</a>
<button class="navbar-toggler" data-toggle="collapse" data-target="#navbarMenu">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarMenu">
<ul class="navbar-nav">
<li class="nav-item"><a href="#" class="nav-link">Home</a></li>
<li class="nav-item"><a href="#" class="nav-link">Contact</a></li>
<li class="nav-item float-right"><a href="#" class="nav-link">Register</a></li>
<li class="nav-item"><a href="#" class="nav-link">LogIn</a></li>
</ul>
</div>
</nav>
</div>
</form>
</body>
答案 0 :(得分:0)
我认为您缺少在顶部正确链接JavaScript库的功能。请检查一下。
fact(3) = if (3 == 1) 1 else 3 * fact(3 - 1) // replace n in the block.
fact(3) = 3 * fact(2) // reduce the if and the subtraction.
fact(3) = 3 * (if (2 == 1) 1 else 2 * fact(2 - 1)) // expand the fact definition.
fact(3) = 3 * (2 * fact(1)) // reduce the if and the subtraction.
fact(3) = 3 * (2 * (if (1 == 1) 1 else 1 * fact(1 - 1))) // expand the fact definition.
fact(3) = 3 * (2 * (1)) // reduce the if.
fact(3) = 6 // reduce the multiplications.