我不知道的行高——line-height

时间:2016-05-07 23:50:27   收藏:0   阅读:423

概述

取值

缩写:line-height的值紧跟font-size的值,使用/分开(eg: font: 16px/normal arial;)

计算

四种盒子

containing box 
inline boxes 
line boxes(inline boxes在containing boxes中一个接一个形成line boxes,高取决于内部最高的inline box) 
content area(围绕文字、看不见的box,高取决于font-size) 
*四种盒子的问题始终没怎么太明白

参考:http://www.slideshare.net/daemao/line-height-2470819

应用

原文:http://www.cnblogs.com/youziclub/p/5469457.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!