非内联 flex

1
2
3
4
5
非内联 flex

内联 flex

1
2
3
4
5
内联 flex

flex-direction row

1
2
3
4
5

flex-direction row-reverse

1
2
3
4
5

flex-direction column

1
2
3
4
5

flex-direction column-reverse

1
2
3
4
5

flex-wrap nowrap

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

flex-wrap wrap

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

flex-wrap wrap-reverse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

flex-flow: row nowrap

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

justify-content flex-start

1
2
3
4
5

justify-content flex-end

1
2
3
4
5

justify-content flex-center

1
2
3
4
5

justify-content flex-around

1
2
3
4
5

justify-content flex-between

1
2
3
4
5

justify-content flex-evenly

1
2
3
4
5

align-items: flex-start

1
2
3
4
5

align-items: flex-end

1
2
3
4
5

align-items: flex-center

1
2
3
4
5

align-items: flex-baseline

1 1111 1111
2 222 22222
3 2 2 22 22
4 444 444 44
5 55 55 5 5 5

align-items: flex-stretch

1
2
3
4
5

align-content: flex-start

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

align-content: flex-end

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

align-content: center

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

align-content: space-between

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

align-content: space-around

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

align-content: stretch

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

order

1
2
3
4
5

flex-grow

1
2
3
4
5

flex-shrink

1
2
3
4
5
6
7
8
9
10
11
12

flex-basis: auto

1
2
3
4
5

flex-basis: 0

1
2
3
4
5

flex:1

1
2
3
4
5

flex:auto

1
2
3
4
5

flex:none

1
2
3
4
5

flex:none

1
2
3
4
5
6
7
8
9
10
11

flex:2

1
2
3
4
5
6
7
8
9
10
11

align-self

1
2
3
4
5

test

12345678910111213141516