Property determines the order in which the items are arranged. The smaller the number, the higher the alignment, and the default is 0. Flex Properties Flex properties are shorthand for Flex-grow, Flex-shrink, and flex-basis , and
There are several ways to center css-there are two ways to center the css in the cloud on a daily basis: good white center, water separation, and vertical. The usage frequency is also very high. The following describes several common implementation methods.
Welcome refers to an error in the text. If you have learned a new method, It will be updated later.1. marg
Big Horse, the horse and the pony, among them the big horse has been married for many years, has a bunch of twin daughters, the telework, but the Chinese horse and Pony is the outstanding bachelor person. So, the big horse asked to allocate more houses, eventually, family consultations with the following distribution results are:#大马 {House-allocation: 2;} #中马 {House-allocation: 1;} #小马 {House-allocation: 1;}I think the allocation above should be easy to read. The house is divided into a total o
CSS Box-flex Properties, then elastic box model Introductionby Zhangxinxu from http://www.zhangxinxu.comThis address: http://www.zhangxinxu.com/wordpress/?p=1338One, the faint opening languageYesterday, while I do not want to work time gap 24ways, in my CSS Wish list A article, saw a fresh CSS properties, is the title
xTable of Contents [1] applicable range [2] Telescopic project [3] telescopic flow direction [4] Telescopic flow wrap [5] spindle alignment [6] flexibility [7] Display order [8]flex compatibility frontFlex box models are available in 3 versions: older, mixed, and new versions. If you want to ensure that the Flex box model is consistent across all major browsers, you must master the different uses of these 3
. icons{/*flex-box layout, child elements can be scaled on demand */Display:-webkit-box;Display:-moz-box;Display:-ms-box;Display:-o-box;Display:box;/*flex-box layout, child elements can be scaled on demand */Display:-webkit-flex;Display:-moz-flex;Display:-ms-flex;Display:-o-
AlignmentWhat I want to mention here is Flexbox, because he can center the content horizontally and vertically, requiring only 3 lines of CSS code.Example code:
. box {
Display: +flex;
+justify-content:center;
+align-items:center;
}
Note: the "+" in the code indicates the vendor prefix, such as "+flex", which may
This is not an introductory course, it is the Flex knowledge collectionCompatibilityDisplay:flex;Display:-webkit-flex;The remaining new attributes are preceded by-webkit- Flex Properties (The first value is the default one of the property)Direction:ltr/rtl//the Flex LineFlex-direction:flex-start/
Use Sass to align vertically and horizontally in CSS elegantly and efficiently (with Flex layout, CSS3 + SASS perfect edition), sasscss3
There are many ways to implement horizontal and vertical center of css. Here I will briefly describe the following four commonly used methods:
1. Use the Flex layout in CSS3
What we n
With the increase in the number of pages you have written, there are a lot of CSS compatibility issues. These compatibility issues, are inevitable, because the technology is constantly improving, so in order not to be eliminated, we will have to do some compatibility treatment. This article mainly introduces the compatibility of the CSS in the flex, the need for
One of the most powerful features of Flex is the tremendous design flexibility it contains. Most of this flexibility can be attributed to Adobe implementing CSS with Flex. In my case, I recently served as an advanced UI designer for a new Adobe air™ application, and I received a large number of design change requests a few days before I officially released the fi
display-flex:container:flex-flow:flex-direction | | Flex-wrap ' Justify-content//Main axis place method-5 values:flex-start|flex-end|center|space-between|space-aroundAlign-items//Cross Axis place method (all ele as one row)-6 Values:stretch (default) | flex-start | flex-end | center | space- Between | Space-aroundAlign
Align-itemsThe Align-items property applies to all Flex containers, which are used to set the default alignment of each flex element on the side axis, as well as a response from one of the respondents:Align-items and Align-content have the same functionality, but the difference is that it is used to center each single-row container instead of the entire container.Align-contentThe Align-content property appl
CSS flex-direction and cssflexdirection of Flexible elastic Box ModelInstance
Set the direction of the
Div
{
Display: flex;
Flex-direction: row-reverse;
}
Browser support for copying preview results
The number in the table indicates the version number of the first browser that supports this attribute.
The number
CSS now provides many features such as advanced options or namespaces. Let's take a look at how to use them. We will show some methods to select and apply some styles to the components: Using namespace for global selection, using ID selection, inheritance, and status selection.
Code
In this example, I will use two buttons (one belongs to halo and one from SPARK) and one progressbar CONTAINED IN THE vgroup.
Mxml code
"1.0"Encoding ="UTF
ArticleDirectory
My application
Namespace Declaration
Global Selection
Selection my ID
Descendant Selection
States Selection
Conclusion
[Transfer] http://cookbooks.adobe.com/post_How_to_use_the_new_CSS_syntax_in_Flex_4-15726.html How to use the new CSS syntax in flex 4 Problem
CSS now provides a lot of features such as advanced
CSS flex-shrink attribute of Flexble elastic box model, flexshrinkcss3Instance
Shrink the second element to 1/3 of other elements:
Effect Preview
div:nth-of-type(2){flex-shrink:3;}
Browser support
The number in the table indicates the version number of the first browser that supports this attribute.
The number following-webkit-,-ms-, or-moz-is the first version
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.