指定属性值,层叠和继承(b标准第六节)未完

来源:互联网 发布:剑三莫雨捏脸数据 编辑:程序博客网 时间:2024/05/29 16:36

1.指定,计算和实际值

当浏览器(user agent,用户代理,暂且译为浏览器吧!)解析文档并生成文档树(document tree),它必须分配树中的每个元素,适用于目标媒体类型(media type)的每一个属性值。

The final value of a property is the result of a four-step calculation: the value is determined through specification (the "specified value"), then resolved into a value that is used for inheritance (the "computed value"), then converted into an absolute value if necessary (the "used value"), and finally transformed according to the limitations of the local environment (the "actual value").

最终值由四个步骤计算得来:①指定值;②继承;③....④.....(这一段实在不知道什么意思,很拗口拗脑啊!)

1.1 指定值

浏览器必须先将指定值分配给每个属性,基于以下机制(基于以下顺序):

1)




原创粉丝点击