标签: css inheritance border-box
对于给定的示例,使用继承而不是直接值有什么区别或好处。
带有继承
html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; }
具有直接值
*, *::before, *::after { box-sizing: border-box; }