📜  应用填充会增加元素的大小 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:31.489000             🧑  作者: Mango

代码示例1
/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}