*, *:before, *:after {
box-sizing: inherit;
}

* 代表所有

针对所有得元素都添加
  box-sizing: inherit; 属性


*:before 如果*很难理解可以看下p标签 after就是在后面 不做赘述 在每个 <p> 元素的内容之前插入新内容


<!DOCTYPE html>
<html>
<head>
<style>
p:before
{
content:"台词:";
}
</style>
</head>

<body>

<p>我是唐老鸭。</p>
<p>我住在 Duckburg。</p>

<p><b>注释:</b>对于在 IE8 中工作的 :before,必须声明 DOCTYPE。</p>

</body>
</html>

CSS * *:before, *:after_css