摘要:
1.@Styles.Render在页面上可以用@Styles.Render("~/Content/css") 来加载css首先要在App_Start 里面BundleConfig.cs 文件里面 添加要包含的css文件BundleConfig就是一个微软新加的 一个打包的配置类用来Add 各种Bundlebundles.Add(new StyleBundle("~/Content").Include("~/Content/common.css")); //这样是错误的 new StyleBundle("~/Content&q 阅读全文