CSS中的继承属性
有继承性的属性
- 字体系列的属性:fon、font-family、font-weight、font-size、font-style、font-variant、font-size-adjust;
- 文本系列的属性:text-indent、text-align、line-height、word-spacing、letter-spacing、text-transform、direction、color;
- 元素的可见性: visibility;
- 列表属性: list-style-type、list-style;
- 光标属性: cursor;
特殊的
1:a标签的字体颜色不能被继承
2:h1~h6标签字体的大小不能被继承,因为是浏览器内置的默认值