>另外请问Button中的data-toggle,data-target是什么意思?
自定义的样式表(类)名称。
>在asp.net的mvc中的_Layout.cshtml中的button按钮运行后的界面没有找到,请问是怎么回事?
你的Layout布局代码呢?应该有类似这样一个东西:
@{Layout = "~/Views/Shared/_Layout.cshtml";}
<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("MVC Movie", "Index", "Movies", null, new { @class = "navbar-brand" })
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("主页", "Index", "Home")</li>
<li>@Html.ActionLink("关于", "About", "Home")</li>
<li>@Html.ActionLink("联系方式", "Contact", "Home")</li>
</ul>
@Html.Partial("_LoginPartial")
</div>
</div>
</div>
强烈推荐你用MVC模板生成View,不会遗漏。
ASP.NET Forum
Other Discussion Forums
FreeRice Donate
Issues to report
Free Tech Books Search and Download