xiaoer_1982 发表于 2013-2-8 00:55:49

如何動態更改flex的Css

1. Move all mxml component style settings that control visual aspects of the view controls to a standalone stylesheet (defaultStyles.css in this example).
For a good separation of UI design and easy maintenance, typical UI control properties that should be moved to a stylesheet rather than specified inline include font and border settings, fill and background colors, padding, alignment, etc.
Use the CSS type selector to override the style settings for all the control instances and class selector with a styleName attribute to control individual control instance settings. Here is an example from the Flex 3 lang. ref. docs:
<blockquote>A CSS rule such as
<div class="wp_syntax" style="padding-bottom: 0px;"><div class="code">Button { color: #FF0000 }
页: [1]
查看完整版本: 如何動態更改flex的Css