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 is about how to use Flex layouts. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Overview of four Flex layouts
A page:spark.layouts has been added to the spark component library of FlexSDK4 (Gumbo). It includes four more important Flex layout class, namely: BasicLayout, HorizontalLayout, TileLayout, VerticalLayout
1. BasicLayout: (default attribute: absolute positioning layout when no positioning is specified)
This is the default FlexSDK3 layout of the spark component, that is, the absolute positioning layout.
In FlexSDK3, it corresponds to: layout= "absolute"
2 、 HorizontalLayout:
This is the horizontal layout in the spark component library.
The corresponding in it is: layout= "horizontal"
3 、 VerticalLayout:
This is the vertical layout in the spark component library.
In FlexSDK3, it corresponds to: layout= "vertical"
4 、 TileLayout:
This is the new layout mode of spark component library, that is, grid layout.
TileLayout layout can be said to be the combination of HorizontalLayout and VerticalLayout.
There is one more thing to note about ◆:
PaddingLeft 、 paddingRight 、 paddingTop 、 paddingBottom
These four attributes have been transferred to HorizontalLayout and VerticalLayout. This is also a little different from FlexSDK3. That is, containers in spark components no longer have paddingLeft, paddingRight, paddingTop, paddingBottom attributes.
About how to use the Flex layout feature:
The above layout is interpreted as:
1. The layout under s:Application.
2. S:VerticalLayout is specified as a vertical layout.
If you will. If it is defined in a container, it is a Flex layout defined for a container.
For example:
Thank you for reading! This is the end of this article on "how to use Flex layout". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.