Old Box review, box Review

Source: Internet
Author: User

Old Box review, box Review

Old box:

Parent element: display:-webkit-box; (the spindle is horizontal =-webkit-box-orient: horizontal). You can use this effect to add overflow: hidden for simple carousel images;

Cross axis:-webkit-box-align: stretch (stretch, when the child element is not set to height), start, end, center, baseline;

On the main axis: (if you want to see the effect, do not set box-flex for the child element)-webkit-box-pack: start (default), end center, justify

When the spindle is defined as the vertical direction:-webkit-box-orient: vertical; in this case, the direction of the cross axis is interchangeable with that of the spindle.

-Webkit-box-direction: sorting order of normal and reverse (reverse) subelements;

Child element:-webkit-box-flex: integer; declares the number of parts occupied by the child element. If the total width of the child element exceeds the parent element, then, the excess part is divided by the value of the corresponding number of parts to X, and then each sub-element reduces the number of corresponding parts by X based on the specified width.

-Webkit-box-flex-group: integer (1 by default) must first have box-flex, and then find the child element with the largest value in the child element, the width is the width of the content (if there is no content, padding, border does not exist), and the remaining sub-elements are allocated according to the number of box-flex parts occupied by the sub-elements.

-Webkit-box-ordinal-group: integer; the sub-elements are arranged in the order of small values before the sub-elements. The same values are arranged in the order of document streams. The default value is 1, the acceptable minimum value is also 1. If the value is smaller than 1, the default value is used.

---------------------------------------------------------

 

 

 

 

 

Related Article

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.