【发布时间】:2014-04-27 16:51:30
【问题描述】:
我的 BundleConfig.cs 文件中有以下内容:
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/mainstyle.css",
"~/Content/layout/style.css", /* <<< HERE, the folder is different */
"~/Content/bootstrap.css",
"~/Content/site.css"));
在~/Content/layout/style.css 文件中:
#page {
width: 1000px;
margin: 0 auto;
background: url(images/img04.jpg) repeat-y left top;
}
如果我们知道捆绑包会将所有 css 合并为一个 (?!) 服务器将如何看到 img04.img (url(images/img04.jpg)) 的链接,如 Content/images/ , Content/css/images/ 或 Content/layout/images?
【问题讨论】:
标签: css .net asp.net-mvc bundling-and-minification