1.width: fit-content  根据内容自适应宽度  可以结合margin-auto 来实现居中

2.with: min-content 使用子元素中宽度最小的。(无论子元素是inline,还是 block,都会使用最小的宽度)

3.width:max-content 使用子元素中最大的开你的。无论是inline还是block

4.we

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-10-12
  • 2022-12-23
  • 2021-09-07
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-08-16
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案