调用之后的结果显示:
1 /* 未能缩小。正在返回未缩小的内容。 2 (1567,65): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: auto 3 (5909,65): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: auto 4 (6018,90): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement 5 (6019,90): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement 6 (6051,90): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement 7 (6052,90): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement 8 (6293,89): run-time error CSS1054: JavaScript error in expression property: Variable has not been declared: documentElement 9 (6649,21): run-time error CSS1062: Expected semicolon or closing curly-brace, found ':' 10 (7167,7): run-time error CSS1031: Expected selector, found '=' 11 (7167,7): run-time error CSS1025: Expected comma or open brace, found '=' 12 */
样式表(1567行)
1 *html .content img { 2 width:expression(this.width>320&&this.width>this.height?320:auto) 3 }
5909行:
1 *html .content img, *html .thumbImage img { 2 width:expression(this.width>320&&this.width>this.height?320:auto) 3 }
6018行
1 * html .mask { 2 position: absolute; 3 left:expression(documentElement.scrollLeft+documentElement.clientWidth - this.offsetWidth); 4 top:expression(documentElement.scrollTop+documentElement.clientHeight - this.offsetHeight) 5 }
是不是MVC 的bundle 压缩技术不支持此类的表达式方式?
求助园里的大神。
我也遇到此问题 目前只能 不打包 ,还有什么 好方法么!
我昨天解决了 是因为 StyleBundle 或者scriptBundle使用的不正确。。请检查你的 bundlesCogfin
bundles.Add(new StyleBundle("~/Bundle/Styles/tipsy").Include(
"~/js/lib/tipsy/tipsy.hovercard.css",
"~/js/lib/tipsy/tipsy.css"));
@Hero小默: 对的,我的也是同样情况,后面发现是bootstrap的版本太高了(4.2.0)降到(3.4.0)就能打包成功。