Javascript asp.net mvc应用程序中的导航栏不';不能使用引导
它使用的引导很少,例如此站点中的默认引导和lumen引导: 但其他自助服务,如Material和flatly。 我不知道为什么会这样: 编辑:这是导航条形码Javascript asp.net mvc应用程序中的导航栏不';不能使用引导,javascript,html,css,bootstrap-4,Javascript,Html,Css,Bootstrap 4,它使用的引导很少,例如此站点中的默认引导和lumen引导: 但其他自助服务,如Material和flatly。 我不知道为什么会这样: 编辑:这是导航条形码 <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="bu
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
</ul>
</div>
</div>
</div>
@ActionLink(“应用程序名称”、“索引”、“主页”、新{area=”“}、新{@class=“navbar品牌”})
- @ActionLink(“主页”、“索引”、“主页”)
- @ActionLink(“关于”、“关于”、“主页”)
- @ActionLink(“联系人”、“联系人”、“主页”)
正如我在附件中看到的,他们使用最新版本的引导:
因此,您必须添加引导引用
在
中启动html文件(看起来您只需要js
文件)
引导版本4.1.3参考文件:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
确保已包含引导jsfile@DeepakVerma我该怎么做呢?你能给我演示一下你的代码吗?这样我就可以更好地帮助你了。我试着在元素中添加这些行,但仍然不起作用。我刚开始使用bootstrap,不知道为什么它看起来像那样,我怎么能把它发送给你?我还不熟悉堆栈溢出。看起来您没有放置所有引导类: