码迷,mamicode.com
首页 > Web开发 > 详细

[1] CSS笔记汇总(1)

时间:2016-01-14 16:08:16      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:

1.  子元素会继承父元素已计算的行高,而不是百分比

参考:https://www.w3.org/TR/2008/REC-CSS1-20080411/

Often, the value of a property is a percentage that refers to another property:

P { font-size: 10pt }
P { line-height: 120% }  /* relative to ‘font-size‘, i.e. 12pt */

For each property that allows percentage values, it is defined what property it refers to. Children elements of ‘P‘ will inherit the computed value of ‘line-height‘ (i.e. 12pt), not the percentage.

[1] CSS笔记汇总(1)

标签:

原文地址:http://www.cnblogs.com/pixcai/p/5130187.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!