9.23 下午 补充学习

9.23 下午 补充学习 

9.23 下午 补充学习 

 flex布局(弹性布局)

阮一峰的博客

display:-webkit-flex 

http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html

以下6个属性设置在容器上。

  • flex-direction
  • flex-wrap
  • flex-flow
  • justify-content
  • align-items
  • align-content

设置在父级display:flex 

justify-content: center;

 align-items: center;

//align-self:center   对自身的属性  不是放在父级了

flex常用在移动端

 

 

移动端:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

 

   

相关文章:

  • 2022-02-18
  • 2021-08-18
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
  • 2021-12-24
  • 2021-10-12
猜你喜欢
  • 2021-04-21
  • 2021-06-10
  • 2021-06-04
  • 2022-01-20
  • 2021-12-10
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案