您可以通过在 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/