5.继承
作者:互联网
继承
子元素会继承父元素的某些css属性(具有传递性)
通常与文字相关的元素都能继承
简写:font在某些情况下可以简写
元素:"inherit;"为强制继承
CSS能自动继承的属性
border-collapse
border-spacing
color
cursor
direction
empty-cells
font(-style | - variant | -weight | -size | -family | -stretch | -size | -adjust)
letter-spacing
line-height
list-style(-image | -position | -type)
overflow-wrap
pointer-events
quotes
text-indent 缩进
text-size-adjust
text-underline-position
text-shadow
text-align
text-align-last
text-justify
test-transform
tab-size
table-layout
white-space
word-break
word-wrap
word-spacing
writing-mode
visibility
zoom
标签:word,继承,text,元素,spacing,size 来源: https://blog.csdn.net/hua_cuo/article/details/110749662