Flex Box Model Detailed parsing

Source: Internet
Author: User

Flex Box Model Detailed parsing

Mobile page layout, using box model layout, the effect is very good

/* ============================================================   flex: Define layout for box model     FLEX-V: Box model Vertical Layout    flex-1: child elements occupy the remaining space    flex-align-center: child elements vertically centered     flex-pack-center: Child elements are centered horizontally    flex-pack-justify: child elements justify     compatibility:ios  4+, android 2.3+, winphone8+   ============================================================  */.flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}. Flex-v{-webkit-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction: Column;}. Flex-1{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;}. Flex-align-center{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center ;}. Flex-pack-center{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content: Center;}. Flex-pack-justify{-webkit-box-pack:justify;-webkit-justify-content:spAce-between;-ms-flex-pack:justify;justify-content:space-between;}   This is generally compatible with the advanced browser kernel. Refer to the white Tree of the great God article, and summed up to get, thank Gondor. White Tree original link:http://www.cnblogs.com/peunzhang/p/3407453.html  Download demo reference link: http://files.cnblogs.com/files/leshao/ Flex%e7%9b%92%e6%a8%a1%e5%9e%8b.rar

Flex Box Model detailed parsing

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.