我注意到一些属性是在CSS中继承的,有些则不是.例如,继承text-size属性,但子块不继承填充和边距.那么如何确定哪些属性是继承的,哪些属性不是?
Ble*_*der 72
这是所有可继承属性的列表.我正在使用W3C的信息,所以我猜它应该是正确的.但是,了解Web浏览器(具体是IE),其中一些浏览器可能无法继承:
azimuthborder-collapseborder-spacingcaption-sidecolorcursordirectionelevationempty-cellsfont-familyfont-sizefont-stylefont-variantfont-weightfontletter-spacingline-heightlist-style-imagelist-style-positionlist-style-typelist-styleorphanspitch-rangepitchquotesrichnessspeak-headerspeak-numeralspeak-punctuationspeakspeech-ratestresstext-aligntext-indenttext-transformvisibilityvoice-familyvolumewhite-spacewidowsword-spacingDav*_*net 20
Blender和Shaz的列表都枚举了所有继承的CSS 2.1属性,包括那些用于听觉媒体的属性azimuth.下面是没有面向听觉的属性的列表,现在包括CSS3属性.
border-collapseborder-spacingcaption-sidecolorcursordirectionempty-cellsfont-familyfont-sizefont-stylefont-variantfont-weightfont-size-adjustfont-stretchfontletter-spacingline-heightlist-style-imagelist-style-positionlist-style-typelist-styleorphansquotestab-sizetext-aligntext-align-lasttext-decoration-colortext-indenttext-justifytext-shadowtext-transformvisibilitywhite-spacewidowsword-breakword-spacingword-wrapSha*_*haz 16
| 归档时间: |
|
| 查看次数: |
20456 次 |
| 最近记录: |