为什么一加上样式up-skin:Embed(source="up.png", 就报错?
<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Style>
Button{
up-skin:Embed(source="up.png",
scaleGridTop="26",
scaleGridBottom="64",
scaleGridLeft="30",
scaleGridRight="106");
}
</mx:Style>
<mx:Button id="btn" x="192" y="51" label="Button" width="201" height="47"/>
</mx:Application>
报错信息:
1084: 语法错误: rightparen 应在 s 之前。 test test.mxml line 9
1093: 语法错误。 test test.mxml line 9
1094: 语法错误: 在换行之前必须结束字符串文本。 test test.mxml line 9
语法错误: rightbrace 应在 end of program 之前。 test Unknown
语法错误: rightbrace 应在 end of program 之前。 test Unknown
语法错误: rightbracket 应在 end of program 之前。 test Unknown
为什么一加上样式up-skin:Embed(source="up.png", 就报错? <?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Button id="btn" x="192" y="51" upSkin="@Embed('up.png')" label="Button" width="201" height="47"/>
</mx:Application>
这样就没问题,为什么CSS就会报错呢?
页:
[1]