在布局中调用样式包 我更新了webgrease和web.optmization
在版式上调用:- @ Styles.Render(“〜/ Content / css”) 样式包:-
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css",
"~/scripts/jquery-ui-1.12.1/jquery-ui.css",
"~/Content/DataTables/css/dataTables.bootstrap.css",
"~/Content/DataTables/css/responsive.dataTables.min.css",
"~/Content/bootstrap.css",
"~/Content/Site.css",
"~/Scripts/jquery-ui-1.12.1/jquery-ui.css",
"~/Content/DataTables/css/dataTables.bootstrap.css",
"~/Content/DataTables/css/responsive.dataTables.min.css",
"~/Content/toastr.min.css"
));
解决IndexOutOfRangeException问题