如果字体大小为100%,则为行高默认值。 [英] Line height default value if font size is 100%

查看:127
本文介绍了如果字体大小为100%,则为行高默认值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须重写我的页面的主体样式:

I must override the body style of my page:

body{
    font-size:14px;
    line-height:20px;
}

覆盖:

body{
    font-size:100%;
    line-height:?????;
}

/ code>属性如果我指定 font-size:100%

推荐答案

默认的 line-height normal ,所以使用:

body {
    font-size: 100%;
    line-height: normal;
}

FYI,您可以通过开放网站,检查< body> 元素并查看继承的计算样式。

FYI, you can confirm this if you have Chrome by opening up a website, inspecting the <body> element and viewing the inherited computed styles.

这篇关于如果字体大小为100%,则为行高默认值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆