3
使用CSS,我該如何設置Flex MX Button的背景顏色?我的按鈕被聲明爲:使用CSS設置Flex MX按鈕背景顏色
<mx:Button label="My Button"/>
而CSS是:
@namespace mx "library://ns.adobe.com/flex/mx";
mx|Button {
color: #66ffff;
backgroundColor: #333333;
}
backgroundColor
似乎並不爲MX按鈕的背景顏色正確的CSS屬性。望着Flex API docs,我試過fillColors
,但沒有做任何事情。
是否有可能使用CSS來改變mx.controls.Button
的背景顏色?
我實際上嘗試過'fillColors',但只有2個值。 Adobe自己的mx按鈕文檔(http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/Button.html)似乎不正確,因爲它只顯示2個值的fillColors。 4件作品,2件不。 – 2011-04-08 23:07:24
我編輯答案看看... – Franky 2011-04-08 23:10:14