CSS中有继承性的属性如下:
类型 | 属性 |
---|---|
字体 | font 、font-family 、font-weight 、font-size 、font-style … |
文本 | text-indent 、text-align 、line-height 、word-spacing 、letter-spacing 、text-transform 、direction 、color |
元素可见性 | visibility |
表格布局 | caption-side 、border-collapse 、border-spacing 、empty-cells 、table-layout |
列表 | list-style-type 、list-style-image 、list-style-position 、list-style |
生成内容 | quotes |
光标 | cursor |
页面样式 | page 、page-break-inside 、windows 、orphans |
声音样式 | speak 、speak-punctuation 、speak-numeral 、speak-header 、speech-rate 、volume 、voice-family 、pitch 、pitch-range 、stress 、richness 、azimuth 、elevation |