-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css] 第32天 说下line-height三种赋值方式有何区别? #115
Comments
line-height: 1.2 => 1.2 * font-size |
div{
line-height: 24px;
line-height: 1.5;
line-height: 1.5em;
line-height: 150%;
} 对于应用在单个元素上,这几种写法的效果都是一样的(除了 px 需要一些计算)。但由于
简单的示例: https://codepen.io/Konata9/pen/oNvZGqo 参考文章: |
数字:font-size * number |
line-height: 1.2 => 1.2 * font-size |
px 是固定的元素高度 |
第32天 说下line-height三种赋值方式有何区别?
The text was updated successfully, but these errors were encountered: