什么是行高:1? [英] What is line-height:1?

查看:98
本文介绍了什么是行高:1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个关于line-height的约会的问题。

It is a question about the appointment of line-height.

我开始学习css。
line-height:通常找到指定20像素或单位的示例。
有时是行高:有1个没有单位的东西,但是这有什么意义?

I began study of css. line-height: Examples appointing 20px or a unit are often found. It is sometimes line-height: There are 1 and a thing without a unit, but what kind of meaning does this become?

推荐答案


可能的值

Possible Values

数字

设置将与当前字体大小相乘的数字,以设置行之间的距离

Sets a number that will be multiplied with the current font-size to set the distance between the lines

长度

设置线条之间的固定距离

Sets a fixed distance between the lines

以当前字体大小的%设置线条之间的距离

Sets a distance between the lines in % of the current font size

http://www.w3schools.com/css/pr_dim_line-height.asp

这篇关于什么是行高:1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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