您的位置:首页 > 产品设计 > UI/UE

YUI comprressor 压缩flexigrid 报错。

2010-05-18 12:05 176 查看
最近用 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 的属性名用 “” 括起来。 就好了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: