CSS Learning (19th)-CSS scaling layout box

Source: Internet
Author: User

CSS Learning (19th)-CSS scaling layout box
I. theory:
1. Basic flexbox model knowledge
A. The layout of flexbox is unpredictable.
B. The layout can be adjusted flexibly when the screen and browser window size change.
C. You can allocate additional space for a specified scaling project based on the ratio of the spindle or side axis.
D. Specify the scaling project to allocate additional space for the scaling container along the spindle or side axis before, after, or between the scaling Project
E. Specify how to distribute the extra space of the vertical element layout axis to the surroundings of the element.
F. Control the layout of elements on the page
G. sorts the elements on the screen in a different way than the DOM.
2. flexbox model terminology
A. the spindle and side axis scaling project is mainly arranged along this axis. The direction depends on the value of justify-content. If column is vertical, otherwise it is horizontal.
B. Spindle start point and spindle end point: the expansion project starts from the spindle start point and ends at the spindle end point.
C. Side axis and side axis direction: the vertical axis is called the side axis, and the side axis is an extension of the side axis direction.
D. Start Point and end point of the side axis: The side content of the scaling project starts from the start point of the side axis and ends at the end point of the side axis.
E. Side axis length and side axis length attribute: Which direction is determined by the side axis? The attribute is width or hegiht.
3. Scaling containers and projects:
A. explicitly set an element to flex or inline-flex through the display attribute, that is, convert the container into a scaling container.
4. Scaling container attributes:
A. Scaling stream direction: flex-direction (row by default)
B. line feed for Scaling: nowrap by default
C. Scaling direction and line feed: Define the spindle and side axis of the scaling container
D. Spindle alignment
E. Stack scaling row: controls how scaling projects are stacked on the layout axis.
5. attributes of the scaling project:
A. The display order changes the order of dom documents and uses this attribute to sort and combine projects.
B. Side axis alignment
1) align-items sets alignment for all items in the scaling container that contain anonymous scaling items
2) align-self
Used to overwrite the default alignment in a single scaling Project
3) scale-definition scaling projects can change their width or height to fill available space
6. Scaling rows
A. flex-wrap each scaling row contains at least one scaling Project
7. Scaling container settings display
A. box is set as a block scaling container
B. Set inline-fox to inline scaling container
C. horizontal the scaling project is displayed in a horizontal line from left to right in the scaling container.
D. vertical the scaling project is displayed in a vertical line from top to bottom in the scaling Project
E. inline-axis the scaling project is displayed along the inline axis
F. The block-axis scaling project is displayed along the block axis.
8. layout order
A. box-direction
1) normal display
2) reverse display of reverse
9. Scaling line feed box-lines
1) All scaling items of a single scaling container are displayed in one row or column.
2) multiple: specify multiple rows or columns of the scaling container to display the scaling project.
10. Spindle alignment box-pack
A. The start scaling project is aligned with the start position of a row.
B. The end scaling project is aligned with the end position of a row.
C. Align the center scaling project with the center
D. justify the scaling project will be evenly distributed in one row
11. Side Axis align
A. the top edge of the start scaling project is placed at the top of the scaling container.
B. The end value is opposite to the start value. The bottom edge of all scaling projects is placed at the bottom of the scaling container, and the additional space of the scaling container is placed at the bottom of the scaling project.
C. The center scaling project is closely located and perpendicular to the scaling container. The additional space of the scaling container is evenly allocated to the top and bottom of the scaling project.
D. The baseline scaling project is aligned based on their baseline. The additional space of the scaling container can be displayed before and after
E. The stretch scaling project fills the entire scaling container
12. Flexible box-flex
A. box-flex can flexibly control the width of the scaling project to fill the extra space of the scaling container, solving the disadvantages of defining the scaling layout by percentage in traditional web design.

Ii. Practice:

1.

 

   ABCD12342. 

 

   ABCD12341-12-13-14-11a2a3a4a 3. 

 

   ABCD12341-12-13-14-11a2a3a4a 4. 

 

   ABCDEFGH123A1B1C1D1E1F1G1H1112131 5. 

 

   Box ~~ 1 box ~~ 2 box ~~ 3 box ~~ 4 box ~~ 5 ~~ 1 ~~ 2 ~~ 3 ~~ 4 ~~ 5 ~~ 1 ~~ 2 ~~ 3 ~~ 4 ~~ 5 ~~ 1 ~~ 2 ~~ 3 ~~ 4 ~~ 5 ~~ 1 ~~ 2 ~~ 3 ~~ 4 ~~ 5 6. 

 

    

I want to eat braised pork ~

I don't have braised pork. I also want to eat pork ribs ~



 

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.