六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 93|回复: 0

如何動態更改flex的Css

[复制链接]

升级  36.35%

563

主题

563

主题

563

主题

探花

Rank: 6Rank: 6

积分
1727
 楼主| 发表于 2013-1-29 07:30:14 | 显示全部楼层 |阅读模式
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 }
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表