FLEXBOX FROGGY-Beginner

FLEXBOX FROGGY游戏难度是Beginner的答案知识点总结
level 1

#pond {
  display: flex;
justify-content:flex-end;
}

level 2

#pond {
  display: flex;
justify-content:center;
}

level 3

#pond {
  display: flex;
justify-content:space-around;
}

level 4

#pond {
  display: flex;
justify-content:space-between
}

level 5

#pond {
  display: flex;
align-items:flex-end;
}

level 6

#pond {
  display: flex;
justify-content:center;
align-items:center;
}

level 7

#pond {
  display: flex;
align-items:flex-end;
justify-content:space-around;
}

level 8

#pond {
  display: flex;
flex-direction:row-reverse;
}

level 9

#pond {
  display: flex;
flex-direction:column;
}

level 10

#pond {
  display: flex;
justify-content:flex-end;
flex-direction:row-reverse
}

level 11

#pond {
  display: flex;
justify-content:flex-end;
flex-direction:column;
}

level 12

#pond {
  display: flex;
flex-direction:column-reverse;
justify-content:space-between;
}

level 13

#pond {
  display: flex;
flex-direction:row-reverse;
justify-content:center;
align-items:flex-end;
}

level 14

#pond {
  display: flex;
}

.yellow {
order:1;
}

level 15

#pond {
  display: flex;
}

.red {
order:-3;
}

level 16

#pond {
  display: flex;
  align-items: flex-start;
}

.yellow {
align-self:flex-end;
}

level 17

#pond {
  display: flex;
  align-items: flex-start;
}

.yellow {
order:3;
align-self:flex-end;
}

level 18

#pond {
  display: flex;
flex-wrap:wrap;
}

level 19

#pond {
  display: flex;
flex-direction:column;
flex-wrap:wrap;
}

level 20

#pond {
  display: flex;
flex-flow:column wrap;
}

level 21

#pond {
  display: flex;
  flex-wrap: wrap;
align-content:flex-start;
}

level 22

#pond {
  display: flex;
  flex-wrap: wrap;
align-content:flex-end;
}

level 23

#pond {
  display: flex;
  flex-wrap: wrap;
flex-direction:column-reverse;
align-content:center;
}

level 24

#pond {
  display: flex;
flex-flow:wrap-reverse column-reverse;
align-content:space-between;
justify-content:center;
}

知识点总结:

1.justify-content属性水平对齐元素,参数有:
flex-start: 元素和容器的左端对齐。
flex-end: 元素和容器的右端对齐。
center: 元素在容器里居中。
space-between:元素之间保持相等的距离。
space-around:元素周围保持相等的距离。

2.align-items属性纵向对齐元素,参数有:
flex-start: 元素与容器的顶部对齐。
flex-end: 元素与容器的底部对齐。
center: 元素纵向居中。
baseline: 元素在容器的基线位置显示。
stretch: 元素被拉伸以填满整个容器。

3.flex-direction属性定义了元素在容器里摆放的方向,参数有:
row: 元素摆放的方向和文字方向一致。
row-reverse: 元素摆放的方向和文字方向相反。
column: 元素从上放到下。
column-reverse: 元素从下放到上。

4.order属性。元素的属性默认值为0,可以设置这个属性为正数或负数。(正数往右移动,负数往左移动)

5.align-self属性控制单个元素,参数有:
flex-start: 元素与容器的顶部对齐。
flex-end: 元素与容器的底部对齐。
center: 元素纵向居中。
baseline: 元素在容器的基线位置显示。
stretch: 元素被拉伸以填满整个容器。

6.flex-wrap属性把分散元素,参数有:
nowrap: 所有的元素都在一行。
wrap: 元素自动换成多行。
wrap-reverse: 元素自动换成逆序的多行。

7.flex-flow是flex-direction和flex-wrap缩写属性,接受两个属性的值,两个值中间以空格隔开。

8.align-content属性决定行与行之间隔多远,属性有:
flex-start: 多行都集中在顶部。
flex-end: 多行都集中在底部。
center: 多行居中。
space-between: 行与行之间保持相等距离。
space-around: 每行的周围保持相等距离。
stretch: 每一行都被拉伸以填满容器。
:align-content决定行之间的间隔,而align-items决定元素整体在容器的什么位置。只有一行的时候align-content没有任何效果。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值