css - 如何在 CSS 中(在 Flex 3 中)将 RadioButton 图标样式设置为空?

标签 css apache-flex flex3 radio-button skinning

您可以通过在 CSS 中设置以下值来为 Flex 中的 RadioButton 设置外观:

upSkin: Embed(...); 
overSkin: Embed(...);
ownSkin: Embed(...);
disabledSkin: Embed(...);
selectedUpSkin: Embed(...);
selectedOverSkin: Embed(...);
selectedDownSkin: Embed(...);
selectedDisabledSkin: Embed(...);

但是,它仍然会在您的皮肤内显示小圆圈图标。您可以通过设置以下样式来更改图标:

upIcon: Embed(...);
overIcon: Embed(...);
etc...

我的问题是,如何将这些图标设置为空?而不是 1x1 像素的透明图像之类的?我怎样才能给它一个空的样式?

编辑:

在 actionscript 中我可以这样做:

button.setStyle("icon", null);

我试过在 CSS 中:

icon: none;
icon: null;

但都没有用。

接受的答案:

建议one & two两者都有效,但我更喜欢更清洁的解决方案:

upIcon: ClassReference(null);

感谢这两个答案(希望我能将两个都标记为答案!)

最佳答案

试试这个:

ClassReference(null);

关于css - 如何在 CSS 中(在 Flex 3 中)将 RadioButton 图标样式设置为空?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/433654/

相关文章:

css - 如何设计以页面可见部分为中心的 float 确认对话框的 CSS?

html - 在 Sass 文件中创建混合

javascript - 我的 css 不在 json 生成的 div 中运行

c# - WCF 休息 : What is it expecting my XML to look like in requests?

apache-flex - 柔性 : Does SecureSockets' <policy-file-request/> is encrypted with the target servers public key?

css - Flex 在应用程序下方附加历史跟踪元素

html - 相对于(上方)绝对 div 定位标题

actionscript-3 - 在 Flex AS3 中迭代模型列表

actionscript-3 - 在 Flex 3 的 TileList 中移动效果

actionscript-3 - Flex : Update a label's text, 这是一个变量