CSS3学习笔记--line-height:150%与line-height:1.5的真正区别
代码:
<div style="line-height:150%;font-size:16px;">
父元素内容
<div style="font-size:30px;">
Web前端开发<br />
line-height行高问题
</div>
</div>
其实区别就在于继承的问题上。
150%是先计算后继承,根据父元素的字体大小计算出行高,并且子元素依然沿用这个计算后的行高:子元素的行高 = 16*150% = 24px; 因此字体显示不全。aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASQAAABTCAIAAAC5y+12AAAMXklEQVR4nO2dvYslxxHA528a2EyhD2bByS0WD44LFDlaNnhM4EyJlt3A1lmgZNF4wU5uYQUG6QQKvHocQqALdMEhdBgtzCLJoLXOgZPFoOA5mJme/qjqru7p6Zl5W0UF+97rN1Ovp35T1dU9vdmWhYUliWRTG8DCcl+EYWNhSSQMGwtLImHYWFgSCcPGwpJIGDYWlkQyO9g2ZZaVm7Ha11Xhd3gWlmjiAVtdFUVVi78Rn92UmVPEYSiNG0EBCYFTnJ+FJaFQYaurIsuyotzUzcu6KrNRvDZmZGuMHgYzC0ssocG2KSF/bOLSQDclBDcZaVosbG2qq4JyP8DDNAtLRCHAtrHEsDbgRQxwjsi2KbWzGW9I6CiwKQeuq6I3m2FjSSIO2NrgVYHu2PjyRvDmkbVlWVHVXu3b8+tsmcHLQKc9TVHVXfbbftxGSeaMJY1YYZM8eVMaTtmXGqB0TX3PHa90r2/eMmKmBpsSofq3uiM1nHWvpDuH9B0uULIkEnI1EsrfbD5KhQ0fhIHtVTM2ZZYVRaE0BpPCNrqpaSQjxpJUPEr/SnBzVtBVvCg1RpFVSnHJFtmkqCYHOA22Dmbo7FEqPCwsRPGa1Ba4wdVJWbTM0g5bCwQy/aZnl0VVA1UbEat62LpMtLJWMMuSh24sScRzBYnI2xwFSH0gpMGmDvcMMfJVJUQWZYkYsCnbgo0KjpEBK2YyZCyJxA+2LuS4av1GkgnAhjm5iYacTuLgSK0XD9snzzaL08by795/d8qOm7eQYVNKDEARUGupfWiO4FAWOzTgKqEbNhNkhi0dbFf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T3Fq+LzweNUOUtCkNnQipPzrAxtsv3yE6mSVk3N+quRlxZFtSsU2Y1Jrhsn3I/Ies+2eSlP8MZVhm04J068L3bmMFVSGbTp1wcak7ZgybBMr+PgJY7aTyrCxsibSENhYWFgiCsPGwpJI/g/ywTOIX1IKFwAAAABJRU5ErkJggg==" alt="" />
1.5则是先继承后计算(无单位参数),根据子元素自己字体的大小去乘以1.5来计算行高 : 子元素的行高 = 30*1.5 = 45px;因此字体显示完全。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASEAAABxCAIAAAAVhoIPAAAPC0lEQVR4nO2dz4skSRXH829K6NseXagGEbpRGpZR9iQKTR+KPHgTxLb7oDuKc2lMG/QyDb0g6Cx46S2GZXEW3T004iDbks2oYLuzhz3YLOyhPGRmZPx4L+JFZERmVPX7EoeZ6qjMqKj3qffixY8s1iwWK6WKuRvAYm25mDEWK62YMRYrrZgxFiutMmVsVRVFtUpVv6kXfpdnscLlzVhTLxZ1I/6NmOqqKpwSl6FUboVyEcKkuD+LlVJ+jDX1oiiKRbVq2v82dVUkMdaYfqxt9DiGWaxg+TC2qiAzbL3QSOskuDKZZJrn69rU1AvKzwDulFmsMSIztrJ4rM69RXRnDj+2qrS7GS9IxCiMKRdu6sXQbGaMlUYkxjpXVYNW2JrwSmDmEZoVxaJuvOp399eRMl2VQUx3m0Xd9CFu9+fOJzJerEQiMCYZ8KoybHHIHkAxmfqa2zvpxt6+ZHhIjTHFHw0v9Vdq8er/J/1gSO/hVCMrlTzzilCQZjNNKmP4AAusrzZjVRXFYrFQKoORX+fL1FiRyWKllXfuXnFlzhS4ShUlWyhCR8kL2fyY5MNkd6Yx1jMM3T1K0obFwhQwBy0og/OMsrTw0c5YxwEybaaHkIu6ARIxwjMNjPXhZm3NRVYVD8tYaRS0zkMEZ45Uoj7I0RhTh3KGjKBUcYiLqkIasKq6HIzKixHmKs1ktlipFMJY72BcyXojkgQYw2zbJEKOGXFepNrMGCsLeTKmZA2AdJ5WU/uj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GfmYhRmbvBBmSzf0zC8uYGHGJi8uxhiwLSvM2DwF3PfBdG1lYca4cElbPBhjsVhjxIyxWGnFjLFYafV/ozPQjNJv0GsAAAAASUVORK5CYII=" alt="" />
另,1.5em等也是按照150%的情况来算的。
CSS3学习笔记--line-height:150%与line-height:1.5的真正区别的更多相关文章
- CSS3学习笔记(3)-CSS3边框
p{ font-size: 15px; } .alexrootdiv>div{ background: #eeeeee; border: 1px solid #aaa; width: 99%; ...
- CSS3学习笔记——伪类hover
最近看到一篇文章:“Transition.Transform和Animation使用简介及应用展示” ,想看看里面 “不同缓动类效果demo”例子的效果,发现了一个问题如下: .Trans_Bo ...
- CSS3学习笔记之linear-gradient
我觉得CSS3很不错,自己也稍微看过,并且尝试过一些属性.对我自己而言,我没有勇气说我学过CSS3,我觉得任何自己看来很小的事情,也只是站在自己的角度来评判.就算的是"简单的"HT ...
- 【JAVAWEB学习笔记】21_多条件查询、attr和prop的区别和分页的实现
今天主要学习了数据库的多条件查询.attr和prop的区别和分页的实现 一.实现多条件查询 public List<Product> findProductListByCondition( ...
- CSS3学习笔记1-选择器和新增属性
前言:之前自学了一些关于CSS3的知识,在学习过程中也遇到过坑,不过总算磕磕绊绊的学习完了关于CSS3的相关知识,于是最近把之前的笔记和代码整理了一下,也算是一个对CSS3知识的回顾复习吧,也希望能够 ...
- 十天精通CSS3学习笔记 part4
CSS3中的变形与动画(下) CSS3 Keyframes介绍 Keyframes 被称为关键帧,其类似于Flash中的关键帧.在CSS3中其主要以"@keyframes"开头,后 ...
- HTML5+CSS3学习笔记(二) 页面布局:HTML5新元素及其特性
HTML5的语义化标签以及属性,可以让开发者非常方便地实现清晰的web页面布局,加上CSS3的效果渲染,快速建立丰富灵活的web页面显得非常简单. 本次学习HTML5的新标签元素有: <head ...
- HTML5+CSS3学习笔记(一)
HTML5+CSS3概述 HTML5和CSS3不仅仅是两项新的Web技术标准,更代表了下一代HTML和CSS技术.虽然HTML5的标准规范还没有正式发布,但是未来的发展前景已经可以预见,那就是HTML ...
- css3学习笔记之文本效果
CSS3的文本阴影 CSS3中,text-shadow属性适用于文本阴影. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 <!DOCTYPE html ...
随机推荐
- django rest_framework--入门教程2
接上文 这里先写一个GET请求的 1.先在VIEW里定义一个方法 代码如下: @api_view(['GET', 'POST']) def book_request(request): if requ ...
- 深入探索AngularJS(持续更新)
数据双向绑定并不是Angular最出彩的地方.大部分对AngularJs的介绍都偏重于使用,使用的学习只是学了AngularJs的API,而那只能AngularJs的很小一部分.随着使用越来越深,系统 ...
- 通俗易懂的深入理解js闭包
闭包(closure)是Javascript语言的一个难点,也是它的特色,很多高级应用都要依靠闭包实现. 一.变量的作用域 要理解闭包,首先必须理解Javascript特殊的变量作用域. 变量的作用域 ...
- thrift之TTransport层的堵塞的套接字I/O传输类TSocket
本节将介绍第一个实现具体传输功能的类TSocket,这个类是基于TCP socket实现TTransport的接口.下面具体介绍这个类的相关函数功能实现. 1.构造函数 分析一个类的功能首先看它的定义 ...
- inventor应用程序错误---解决方法
---恢复内容开始--- 点击 出现类似 我使用了网上的几个方法,最后是下载了2014--SP1补丁安装后就能正常打开程序了 http://pan.baidu.com/s/1pLQxp2b 这是地址3 ...
- Nodejs学习笔记(十一)--- 数据采集器示例(request和cheerio)
目录 写在之前 示例 示例要求 采集器 加入代理 请求https 写在之后... 写在之前 很多人都有做数据采集的需求,用不同的语言,不同的方式都能实现,我以前也用C#写过,主要还是发送各类请求和正则 ...
- Atitit..文件上传组件选型and最佳实践总结(3)----断点续传控件的实现
Atitit..文件上传组件选型and最佳实践总结(3)----断点续传控件的实现 1. 实现思路:::元插件,元设置... 1 2. 实现流程downzip,unzip,exec 1 3. Zip ...
- paip.python php的未来预测以及它们的比较优缺点
paip.python php的未来预测以及它们的比较优缺点 跟个php比..python有下列的优点: 1.桌面gui 功能强大. 主要是pyqt很好...而ruby qt 则好像不更新了..php ...
- iOS开发-UITableView滑动视差
视差滚动是指让多层背景以不同的速度移动,形成立体的运动效果,在Web上应用的比较多,App中倒是见的相对比较少,主要在UITableView中的应用的比较多,尤其是当整个UITableViewCell ...
- 每天一个linux命令(7):mv命令
mv命令是move的缩写,可以用来移动文件或者将文件改名(move (rename) files),是Linux系统下常用的命令,经常用来备份文件或者目录. 企业中常用的 [root@ local]# ...