YUI comprressor 压缩flexigrid 报错。
最近用 Yui comprressor 压缩 flexigrid 报: "invalid property id"
查询到如下:
For those using the YUI comprressor, it will fail on the following line:
$(this.colCopy).css({position:'absolute',float:'left',display:'none', textAlign: obj.align});
But works fine with this:
$(this.colCopy).css({position:'absolute','float':'left',display:'none', textAlign: obj.align});
The problem is that float is a reserved word and the YUI compressor does not know it is used for an array index.
按方法,把 CSS 的属性名用 “” 括起来。 就好了。
作者:NewSea 出处:http://newsea.cnblogs.com/
QQ,MSN:iamnewsea@hotmail.com 如无特别标记说明,均为NewSea原创,版权私有,翻载必纠。欢迎交流,转载,但要在页面明显位置给出原文连接。谢谢。 |