哪些CSS属性是继承的? [英] Which CSS properties are inherited?
本文介绍了哪些CSS属性是继承的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我注意到一些属性在CSS中继承,有些属性不是。例如,text-size属性是继承的,但填充和边距不会被子块继承。那么如何确定哪些属性是继承的,哪些不是?
I've noticed that some properties are inherited in CSS, and some are not. For example, the text-size property is inherited, but the padding and margin are not inherited by the child blocks. So how to figure out which properties are inherited, and which are not?
推荐答案
http://www.w3.org/TR/CSS21/propidx.html\"> W3C的资讯,因此我猜测应该 是否正确。但是,知道网络浏览器(特别是IE),其中一些可能不被所有浏览器继承:
I'm working with W3C's information, so I'd guess it should be correct. But knowing web browsers (IE specifically), some of these might not be inherited by all browsers:
-
/ code>
-
border-collapse
-
border-spacing
-
字幕端
-
color
-
游标
-
方向
-
高程
-
empty-cells
-
font-family
li> -
font-style
-
font-variant
-
font-weight
/ li>
-
字体
-
>
-
line-height
-
list-style-image
-
list-style-position
-
list-style-type
-
list-style
-
孤儿
-
pitch-range
-
pitch
-
报价
-
richness
-
speak-header
-
符号
-
标点符号
-
说话
-
语速
-
stress
-
text-align
-
text-indent
转换 -
可见性
- 语音家庭
-
音量
-
白色空间
-
widows
-
word-spacing
font-size
azimuth
border-collapse
border-spacing
caption-side
color
cursor
direction
elevation
empty-cells
font-family
font-size
font-style
font-variant
font-weight
font
letter-spacing
line-height
list-style-image
list-style-position
list-style-type
list-style
orphans
pitch-range
pitch
quotes
richness
speak-header
speak-numeral
speak-punctuation
speak
speech-rate
stress
text-align
text-indent
text-transform
visibility
voice-family
volume
white-space
widows
word-spacing
这篇关于哪些CSS属性是继承的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文