1.内容
text-align:center
适用于对齐内部的 inline-block 元素(场景:左侧图标,右侧内容块,可随内容自适应对齐)
2.块
display:table  &&  text-align:center
3.块
margin:0 auto;
4.块
position:absolute  &&  margin负值(定宽)
||  margin负值 
|| position:relative &&  left负值

相关文章:

  • 2021-06-11
  • 2021-12-23
  • 2022-12-23
  • 2021-07-09
  • 2021-05-20
  • 2021-12-31
  • 2021-09-23
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案