Flex 4中默认的Spark主题有哪些样式? 以及如何覆盖Spark主题?例如,我想提供另一种backgroundcolor和 没有任何反应,颜色css按预期工作。 CSS看起来像这样:
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace local "*";
global
{
font-family: Georgia;
color: #260B01;
content-background-color: Red;
content-background-alpha: 0.8;
}
</fx:Style>
答案 0 :(得分:1)
嗯。这段代码工作正常:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
global {
font-family: Georgia;
color: #260B01;
content-background-color: Red;
content-background-alpha: 0.8;
}
</fx:Style>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
]]>
</fx:Script>
<s:List dataProvider="{new ArrayCollection(['First','Second'])}" />
</s:Application>
您的期望是什么?您的结果是什么?