integer with 1 as the default value, while that of the new flex version is a natural number with 0 as the default value. Therefore, when setting the display sequence, skip 1 and start from 2.
Flex compatibility
The following are common compatibility codes of the flex module:
/* Display */. display_flex {display:-webkit-box; display:-ms-flexbox; display:-webkit-
determines the direction of the spindle (that is, the arrangement direction of the item).
. box {
Flex-direction:row | Row-reverse | Column | Column-reverse;
}
It may have 4 values.
Row (default): The spindle is horizontal and the starting point is on the left side.
Row-reverse: The spindle is horizontal and the starting point is at the right end.
Two-column layout (one-column fixed width, one-column adaptive, high column height), two-column adaptive
Structure:
1
1. Use table + table-cell to implement the layout of two columns (one column is fixed width, one
cross ending.4. Main spindle space occupied by the flex item in the Size:flex container, that is, width.5. The cross space occupied by the flex item in the cross Size:flex container, that is, height 3. Related Properties Description 3.1. Properties in a container: that is, the properties that a container with flex layout can use. 3.1.1
+
Internet Explorer 11+
Opera 17+
Safari 6.1+ (prefixed with-webkit-)
Android 4.4+
IOS 7.1+ (prefixed with-webkit-)
2. Usage:Use the flex layout to first set the display property on the parent element in HTML:. flex-container { display:-webkit-flex;/* Safari */ Display:flex;}or if you want it to be like inline elements, you can writ
, ...... How many people are using IE6 B.
Note: When we use an elastic layout, float, clear, and vertical-align in CSS will become invalid.
Ii. Attributes of elastic Layout
The first is the attributes of containers for Elastic layout.
1. flex-direction attributes
Flex-direction determines the container direction.
div { flex-direction: row | row-reverse |
two possibilities, so it cannot be simply called a horizontal or vertical axis.The direction of the spindle is also important because it affects the arrangement of flex projects. As shown, if the spindle is horizontally oriented, the Flex project is arranged horizontally. If the spindle is vertically oriented, then the Flex project will be arranged in a vertical
To set or retrieve the Flex box scaling reference value:If the sum of the base values of all child elements is greater than the remaining space, the remaining space is scaled proportionally according to the base value of each settingCalculated value – Absolute number: when the Flex-container main direction is not large enough to hold the flex-basis sum of
See: http://www.k-zone.cn/zblog/post/adobe-flex-air-traing-diagrams-data-1.html for details
The full text is as follows:The article Adobe Flex/air learning route (Control in the flex part) introduces some experience in learning flex controls. Now I will start the second article in the Adobe
intersection axis is called cross start , the end position is called cross end .The project is arranged by default along the spindle. The main spindle space occupied by a single item is called the main size occupied cross-axis space cross size .Third, the container propertiesThe following 6 properties are set on a container.
Flex-direction
Flex-wrap
I often used flex layout before, but recently I saw someone else using it, I found that I still did not understand this, and re-read the http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html.I. What is the flex layout?
Flex, short for flexible box, is used to provide great flexibility for the box model.
All containe
Document directory
Flex Overview
Flex Builder
Flex, ColdFusion, and JRun
Flex and Flash
Flex and Flash Remoting
Flex roadmap, price, toolkit, and other related technologies
Trial and developer versions of
and a future technology. The flex layout allows you to write code in a small manner. All the widths, heights, and locations are adapted by the browser according to the established rules, so that the cross-platform reading experience is free.2. flex Style
Some attributes of css3 flex are not performing well or support is not perfect in ie and Firefox. ie9 and b
: "-moz-box"
Safari, Chorme, Opera: "-webkit-box"
Display:-moz-box;display:-webkit-box;
(2) The difference between box layout and multi-column layout
1. When using multi-column layouts, the width of each column must be equal, and when you specify the width of each column, you can only specify a uniform width for all co
the sub-elements are arranged in the spindle.
Align-items: The direction in which the child elements are arranged on the intersection axis.
Align-content: The alignment of multiple axes.
These few, except align-content are relatively common properties. Let's look at these properties and how they work in small programs.1) flex-directionAs mentioned earlier, the flex layout has two axes, which a
intersection with the border) is called main start, and the end position is called main end;The starting position of the intersection is called Cross start, and the end position is called crossing end.Three. Container PropertiesThere are 6 properties on a container
Flex-direction
Flex-wrap
Flex-flow
Justify-content
Align-items
Align-
Flex-directionDescription : Sets the orientation of the item display.Syntax :Row default : Item is displayed on one line, from left to right.row-reverse: item appears on one line, from right to left.Column: Item is displayed in a column, from top to bottom.column-reverse: Item is displayed in a column, from bottom to top.Example :2.3
See http://www.k-zone.cn/zblog/post/adobe-flex-air-traing-diagrams-data-2.html for details
The original text is as follows:The previous article Adobe Flex/air learning route (data in flex Part 1) analyzes some frequently used data types in flex and some frequently used classes for data processing, today, we will brief
First, there is a SWF file, test.swf, and there is also an automatically generated HTML file, test.html.Then, in another file, test.jsp, through the IFRAME, the introduction of the test.html, that is, the introduction of SWF.Now I want to pass the argument to flex in test.jsp, and call the methods in Flex, and I'm going to use the following method:First, write a method to invoke
First, there is a SWF file, test.swf, and there is also an automatically generated HTML file, test.html.
Then, in another file, test.jsp, through the IFRAME, the introduction of the test.html, that is, the introduction of SWF.
Now I want to pass the argument to flex in test.jsp, and call the methods in Flex, and I'm going to use the following method:
First, write a method to invoke
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.