本文介绍了如何在CSS中将RadioButton图标样式设置为空(在Flex 3中)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

You can skin a RadioButton in Flex by setting the following values in CSS:

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

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

But, it will still display the little circle icon inside your skin. You can change the icon by setting the following styles:

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

我的问题是,如何将这些图标设置为空?而不是1x1像素的透明图像之类的东西?我怎么给它一个空的风格?

My question is, how can I set these icons to nothing? Rather than a 1x1 pixel transparent image or something? How can I give it an empty style?

在动作脚本中,我可以这样做:

In actionscript I can do it like:

button.setStyle("icon", null);

在CSS中,我尝试过:

In CSS I've tried:

icon: none;
icon: null;

但是都没有.

接受的答案:

建议& 两个都可以,但是我更喜欢以下更干净的解决方案:

Suggestions one & two both worked, but I prefer the cleaner solution of:

upIcon: ClassReference(null);

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

Thanks for both answers (wish I could mark both as the answer!)

推荐答案

尝试一下:

ClassReference(null);

这篇关于如何在CSS中将RadioButton图标样式设置为空(在Flex 3中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 13:21