如何在flex中从TextField中删除默认CSS?

时间:2021-03-20 22:42:03

I'm in serious fight with it. I need to set the defaultTextFormat of a TextField component to my own values. I can't do that since the component does not use the defaultTextFormat if it has it is already using the format from CSS stylesheet as said here http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.html#defaultTextFormat :

我正在与它斗争。我需要将TextField组件的defaultTextFormat设置为我自己的值。我不能这样做,因为组件不使用defaultTextFormat,如果它已经使用CSS样式表中的格式,如此处所述http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash /text/TextField.html#defaultTextFormat:

Note: You can't set this property if a style sheet is applied to the text field.

注意:如果样式表应用于文本字段,则无法设置此属性。

My question is: is there a way to remove the CSS propertis of the text field? How could I "override" this style sheet ??

我的问题是:有没有办法删除文本字段的CSS属性?我怎么能“覆盖”这个样式表?

I want be able to do that without overwrite the CSS file or write my own.

我希望能够在不覆盖CSS文件或编写自己的文件的情况下做到这一点。

1 个解决方案

#1


1  

If you give your own CSS properties to a component, the default properties will automatically get overridden.

如果您将自己的CSS属性提供给组件,则会自动覆盖默认属性。

Thanks

谢谢

#1


1  

If you give your own CSS properties to a component, the default properties will automatically get overridden.

如果您将自己的CSS属性提供给组件,则会自动覆盖默认属性。

Thanks

谢谢