您的位置:首页 > 其它

line-height相关总结

2014-07-29 13:33 134 查看
line-height

http://cindylu520.iteye.com/blog/670512

四个boxes

containing boxes

inline boxes

匿名inline boxes

line boxes

inline boxes + inline boxes = line boxes

一般情况:(line-height - font-size)/2 == 半行间距

复杂情况: line-height < content area 半行高会折叠起来保证inline box的高度

line boxes的行高取决于 inline boxes里面最高的那个, 包括可替换元素、上标或下标等
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: