开发者

Flex: CSS style. Can I use the IDs ? Or should I add the styleName attribute?

开发者 https://www.devze.com 2022-12-26 21:48 出处:网络
I\'m using a CSS开发者_高级运维 file to style my flex application. can I use components IDs to change their style from the CSS file ?

I'm using a CSS开发者_高级运维 file to style my flex application. can I use components IDs to change their style from the CSS file ?

Or I should add the styleName attribute for each element ?

thanks


In Flex 3 you can't use the ID (#) selector. This is supposedly added in Flex 4, but I haven't had the opportunity to try it out yet to see how well it works.

Flex also doesn't support combinator selectors.


There's also F*CSS which supposedly adds pretty much functionality regarding CSS to Flash (and I guess Flex as well). Haven't actually worked with it yet, but the demonstration seems easy and solid enough. If you're willing to experiment you could give it a try.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号