使用 CSS 设置 Flex MX 按钮背景颜色
如何使用 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 文档,我尝试了 fillColors 但没有任何作用。
是否可以使用 CSS 更改 mx.controls.Button
的背景颜色?
Using CSS, how do I set the background color of a Flex MX Button? My button is declared as:
<mx:Button label="My Button"/>
And the CSS is:
@namespace mx "library://ns.adobe.com/flex/mx";
mx|Button {
color: #66ffff;
backgroundColor: #333333;
}
backgroundColor
doesn't seem to be the correct CSS property for MX Button's background color. Looking at the Flex API docs, I tried fillColors
but that didn't do anything.
Is it possible to change mx.controls.Button
's background color using CSS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
即使我尝试使用外部 .css 文件,
您也可以使用 创建它Flex Style Explorer 并通过以下语句导入:
try
Even if i'd try to use an external .css file
You can create it with Flex Style Explorer and import it by the following statement: