Skip to content

CSS 的盒模型主要包括以下两种,可通过 box-sizing 属性进行配置:

  • content-box:默认属性。width 只包含 content
  • border-box:width 包含 (content、padding、border)