FlexboxFroggy game

 

justify-content 水平控制

Level 1

1.0

1.1

在 Row 结束位置,填入justify-content: flex-end即可

 

Level 2

2.0

2.1

在Row的居中位置,填入justify-content: center即可

 

Level 3

3.0

3.1

在Row均匀分布,所有元素周围都有相同间距。元素两边都有空隙,左右两侧也留空,填入justify-content: space-around即可

 

Level 4

4.0

4.1

在Row均匀分布,两端对齐,元素之间等距。首尾没有间距,只有“中间”有空隙,填入justify-content: space-between即可

 

align-items 竖直控制

 

Level 5

5.0

5.1

靠底部对齐, 填入align-items: flex-end即可

 

justify-content and align-items 混合

Level 6

6.0

6.1

Row 和 column 的中心,填入justify-content: center; align-items: center;即可

 

Level 7

7.0

7.1

 

flex-direction items 排列方向控制

 

Level 8

8.0

8.1

水平方向,反转排序,空格也算。填入flex-direction: row-reverse;即可

 

Level 9

9.0

9.1

纵向从上到下排, 填入flex-direction: column;即可

 

flex-direction and justify-content混合

Level 10

10.0

10.1

用 flex-end

用flex-start

 

Level 11

11.0

11.1

when the flex direction is a column, justify-content changes to the vertical and align-items to the horizontal.

 

Level 12

12.0

12.1

 

flex-direction, justify-content, and align-items混合

Level 13

13.0

13.1

 

order

有时候 flex-directionjustify-content 没法完全解决“顺序错乱”的问题。

By default, items have a value of 0, but we can use this property to also set it to a positive or negative integer value (-2, -1, 0, 1, 2).

 

Level 14

14.0

14.1

 

Level 15

15.0

15.1

align-self (与align-items语法一样)

Level 16

16.0

16.1

只把黄色青蛙移动到底部,填入align-self: flex-end;即可。

 

order and align-self混合

Level 17

17.0

17.1

 

flex-wrap 控制子元素是否换行

Level 18

18.0

18.1

填入flex-wrap: wrap;,当子元素总宽度 > 容器宽度时,就会换行。

 

flex-direction and flex-wrap 混合

Level 19

19.0

19.1

 

flex-flow (flex-direction and flex-wrap结合)

 

Level 20

20.0

20.1

flex-direction: column; flex-wrap: wrap;

 

align-content

当容器内的项目因为 flex-wrap: wrap 而出多行时,align-content 控制这些“行之间的间距”。

 

Level 21

21.0

21.1

wrap 后所有行向上靠齐,填入align-content: flex-start;即可

 

Level 22

22.0

22.1

wrap 后所有行向下靠齐,填入align-content: flex-end;即可

 

flex-direction and align-content 混合

Level 23

23.0

23.1

 

Level 24

24.0

24.1

 

我真棒!!!