当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS line-height属性
The line-height property sets the distance between lines.
line-height属性可以设置行与行之间的距离
Note: Negative values are not allowed.
注意:不可使用否定值
Inherited: Yes
继承性:有
p p p |
Value | 描述 |
---|---|
normal | Sets a reasonable distance between lines 设置一合理的行间距离 |
number | Sets a number that will be multiplied with the current font-size to set the distance between the lines 设置数字在当前文字大小的基础上再做增加来设置行距 |
length | Sets a fixed distance between the lines 设置固定的行间距离 |
% | Sets a distance between the lines in % of the current font size 按当前文字大小来以百分比来设置行间距离 |