容器的概念,是用来包含其它容器(container)和项目(item). flex container——flex容器 A flexbox layout is defined using the flex or inline-flex values of the display property on the parent item. This element then becomes a flex container, and each one of its children becomes…
Flexbox ——弹性布局 Flexbox is a layout model for displaying items in a single dimension — as a row or as a column. 弹性布局是一种基于一维的行和列的布局模型. The key feature of flexbox is the fact that items in a flex layout can grow and shrink. 弹性布局的关键特性就是item(项)可以放大和收缩. Sp…
Flex Item flex容器的子元素就是这个容器的flex item. The direct children of a Flex Container (elements with display: flex or display: inline-flex set on them) become flex items. Continuous runs of text inside flex containers will also become flex items. flex容器里的连续文…
Cross Axis——交叉轴,与Main Axis(主轴)垂直交叉. main axis is row or row-reverse the cross axis runs down the columns. 主轴是row或者row-reverse的时候,交叉轴是列的方向,就是垂直于水平方向,因为此时主轴为水平方向,交叉轴与主轴垂直交叉. main axis is column or column-reverse then the cross axis runs along the rows.…