我想在background中设置backgroundImage属性为“../img/foo.png”。我的代码如下所示:如何在Flex 4中设置CSS文件中的backgroundImage属性?
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
.bg {
background-image : "../img/foo.png";
background-image-fill-mode : repeat;
}
</fx:Style>
<s:BorderContainer width="200" height="200" styleName="bg" />
它不起作用。我不想使用嵌入式图像,所以
background-image : Embed("../img/foo.png");
的作品,但不适合我。有什么办法可以实现它吗?
这也行不通。 – paddlesteamer