In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you how to use external style sheets in Flex. The content is simple and easy to understand. It is clearly organized. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn how to use external style sheets in Flex.
Flex uses hierarchical style sheets (CSS)
Flex uses hierarchical style sheet standards to ensure consistency in the user interface and to make applications easier to maintain. Just as in HTML, you can embed a style sheet pointing to external styles in your app, or define a style as an attribute under a specific markup element. Style sheets also allow you to define fonts. The required font definition is embedded in the bytecode of the application, and can be rendered correctly even if the user does not have such a font on his machine.
Below is an external stylesheet called main.css.
@font-face{ src:url("LucidaSansRegular.ttf"); font-family:mainFont; } .error{ color:#FF0000; font-size:12; } .title{ font-family:mainFontBold; font-size:18; } TextArea{ backgroundColor:#EEF5EE; }
The following example declares an external style sheet using tags and uses different styles for different controls.
ThisisaTextArea
Figure 5. Applications using external style sheets
The above is "Flex external style sheet how to use" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.