如何在 MVC 捆绑中呈现 Css 样式表
How to render Css style sheets in MVC bundling
我在 运行 页面时出现以下错误,我很困惑为什么会出现此错误,下面是我的屏幕截图
更新:
下面是渲染 html
您的样式呈现为脚本
http://docs.telerik.com/kendo-ui/aspnet-mvc/asp-net-mvc-4
尝试使用单独的脚本包
bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
"~/Scripts/kendo/kendo.all.min.js",
// "~/Scripts/kendo/kendo.timezones.min.js", // uncomment if using the Scheduler
"~/Scripts/kendo/kendo.aspnetmvc.min.js"));
以及样式
bundles.Add(new StyleBundle("~/Content/kendo/css").Include(
"~/Content/kendo/kendo.common.min.css",
"~/Content/kendo/kendo.default.min.css"));
我在 运行 页面时出现以下错误,我很困惑为什么会出现此错误,下面是我的屏幕截图
更新:
下面是渲染 html
您的样式呈现为脚本
http://docs.telerik.com/kendo-ui/aspnet-mvc/asp-net-mvc-4
尝试使用单独的脚本包
bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
"~/Scripts/kendo/kendo.all.min.js",
// "~/Scripts/kendo/kendo.timezones.min.js", // uncomment if using the Scheduler
"~/Scripts/kendo/kendo.aspnetmvc.min.js"));
以及样式
bundles.Add(new StyleBundle("~/Content/kendo/css").Include(
"~/Content/kendo/kendo.common.min.css",
"~/Content/kendo/kendo.default.min.css"));