C#学习教程:在bundleconfig中添加bootstrap在asp.netmvc中不起作用我通过nuget包控制台安装了引导程序。之后,在BundleConfig.cs文件中,我将两项添加到捆绑列表中:bundles.Add(newScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.min.js"));bundles.Add(newStyleBundle("~/Content/bootstrap").Include("~/Content/bootstrap.min.css","~/Content/bootstrap-theme.min.css"));当然,这些文件存在于本地。_Layout.cshtml文件包含@ViewBag.Title@Styles.Render("~/Content/css")@Scripts.Render("~/bundles/modernizr")@Styles.Render("~/Content/bootstrap")@RenderBody()@Scripts.Render("~/bundles/jquery")@Scripts.Render("~/bundles/bootstrap")@RenderSection("scripts",required:false)但是当我看到一个视图时(例如登录页面)我看到捆绑包没有附加引导程序部分。登录...使用Bundle时,不要附加.minbundles.Add(newStyleBundle("~/Content/bootstrap").Include("~/Content/bootstrap.css","~/Content/bootstrap-theme.css"));基于调试设置,(主要是web.config)web.config设置:以上是C#学习教程:在bundleconfig中添加bootstrap在asp.netmvc中不起作用的所有内容分享,如果你有使用和需要了解有关C#学习教程的更多信息。希望大家多多关注。本文收集自网络,不代表立场。如涉及侵权,请点击右侧联系管理员删除。如需转载请注明出处:
