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 的属性名用 “” 括起来。 就好了。
posted @ 2010-05-18 12:05  NewSea  阅读(444)  评论(0编辑  收藏  举报