弹性布局中的justify-content属性
justify-content语法如下:
justify-content: flex-start(默认) | flex-end | center | space-between | space-around
flex-start(默认属性):向行头紧挨着填充。
justify-content 属性
结果:justify-content 属性
flex-end:向行尾紧挨着填充
justify-content 属性
结果justify-content 属性
center:居中
结果:justify-content 属性
space-between:弹性项目平均分布在该行上。
结果:justify-content 属性
space-around:弹性项目平均分布在该行上,两边留有一半的间隔空间,同时首尾两边和弹性容器之间留有一半的间隔。
结果:justify-content 属性

相关文章:

  • 2022-03-05
  • 2022-02-09
  • 2021-08-16
  • 2021-05-26
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-07-18
猜你喜欢
  • 2021-07-18
  • 2022-01-19
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2021-05-22
  • 2021-09-06
相关资源
相似解决方案