front-end-interview-questions
front-end-interview-questions copied to clipboard
【CSS】CSS有哪些样式属性是可以继承的
title: CSS有哪些样式属性是可以继承的
css 有些样式我们是可以添加给父级元素上,然后会自动继承给子元素。比如 字体的属性
font-size
font-weight
color
cursor
等等
-
字体相关属性
- font-family
- font-weight
- font-size
- font-style
-
文本系列属性
-
text-indent 文本缩进
-
text-align 文本水平对齐
-
text-shadow 文本阴影
-
line-height 行高
-
text-transform 控制文本的大小
-
-
元素的可见性
- visibility
-
光标属性
-
cursor
当然还有很多