CSS flex-related, long-term updates

Source: Internet
Author: User

This is not an introductory course, it is the Flex knowledge collection

Compatibility
Display: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 Line

Flex-direction:flex-start/flex-end/center/space-between/space-around//the main axis

Align-items:flex-start/flex-end/center/baseline/stretch//the Cross Axis

Flex-wrap:nowrap/wrap/wrap-reverse

Align-content:stretch/flex-start/flex-end/center/space-between/space-around

Flex-flow: [Flex-direction] [Flex-wrap]

Flex Item Property
order:0

Margin:auto

Align-self:stretch/flex-start/flex-end/center/baseline//overrides Flex Container ' s Align-items

flex:0 1 Auto/[number]/initial/auto/none//Do not use, unless the flex-basis part set auto, otherwise in IE, box-sizing forced to change the content box
Flex: [Flex-grow] [Flex-shrink] [flex-basis]

Flex-basis:auto/[width]

flex-grow:0

Flex-shrink:1

CSS flex-related, long-term updates

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.