代碼沒(méi)有變化,如下所示。將引導(dǎo)程序從 3.2 升級(jí)到 4.3.1?,F(xiàn)在,菜單- 在左側(cè)顯示為一條線- 無(wú)論窗口大小如何,漢堡菜單都不會(huì)顯示- 與漢堡菜單類似地展開(kāi)和折疊我已將 navbar-inverse 更新為 navbar-dark,但找不到任何其他更改。折疊 展開(kāi)升級(jí)前請(qǐng)修正@using Portal.Helpers;<!DOCTYPE html><html><head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Center For People In Need @ViewBag.Title</title> @Styles.Render("~/Content/css") @RenderSection("styles", required: false)</head><body> <div class="navbar navbar-dark bg-dark 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> <a href="@Url.Action(" Index", "Home" )"><img src="/Content/Logo.png" alt="l" class="logo" /></a> @*<a href="@Url.Action("Index", "Home")"><img src="/Content/Logo.png" alt="logo" class="logo" /></a>*@ </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> @{var UserRoles = Roles.GetRolesForUser();} @if (UserRoles.Contains("ClientUser") || UserRoles.Contains("ClientAdmin")) { <li class="@Html.SelectedClass(TempData["activemenu"], "Clients")"> @Html.ActionLink("Clients", "Index", "Clients") </li> }...
將 bootstrap 3 升級(jí)到 4f,現(xiàn)在導(dǎo)航菜單不顯示
飲歌長(zhǎng)嘯
2024-01-20 20:57:28