Small program UI Design (8)-align-content application of layout decomposition-flexbox

Source: Internet
Author: User

Flexbox Align-content What the hell is the devil, I also did long time developed, the current tool Wviewrow component uses this property, Wviewcolumn This property does not work.
are two examples of justify-content,align-items, and align-content attribute combinations, please take a closer look.

Do you see the difference, the first overall right-hand arrangement (Justify-content=flex-end), the first row and the second line of short yellow and short red on the line alignment (Align-items=flex-start). The second whole is left-aligned, and the first and second lines of short yellow and short red are bottom-aligned (align-items=flex-end). The first line aligns to the top, the second line aligns to the bottom (Align-content=space-between). The second one has an interval (align-content=space-around) between the top and bottom.
The first attribute is as follows:

The second attribute is as follows:

The combination of the above attributes determines the inner component wrapping display, the internal arrangement of each line, and the arrangement of rows. You can simply interpret the Align-content attribute as a block attribute, which affects each row and the layout of each block in view when there are multiple rows.
This paste content because it is three attribute combinations, after reading the explanation, please actually do it.

Small program UI Design (8)-align-content application of layout decomposition-flexbox

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.