【发布时间】:2019-12-12 20:46:43
【问题描述】:
我在我的 ASP.NET MVC 项目中包含了 bootstrap 的 lumen 主题,并将其替换为默认的 bootstrap.css 主题。现在我面临的问题是主题的导航栏看起来不应该是这样。实际上根本没有导航栏。
using System.Web;
using System.Web.Optimization;
namespace vidly
{
public class BundleConfig
{
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.validate*"));
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap-Lumenn.css",
"~/Content/site.css"));
}
}
}
【问题讨论】:
标签: css asp.net bootstrap-4 navbar