1,Flexbox(更优雅的布局)

①居中:{display:flex; justify-content:center; align-items:center;}
②设定flex-grow属性的话,会自动填满空白;
③原理:display:flex就是flex:0 0 auto就是flex-grow:0;flex-shrink:0;flex-basic:auto

2,text-align: justify;text-align-last:justify;(多列均匀布局)

    也可以用伪类:.justify:after {content: "";display: inline-block;width: 100%;}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-06-17
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2021-12-29
  • 2021-08-17
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案