lineHeight 属性设置或返回文本中行之间的距离。
Property | |||||
---|---|---|---|---|---|
lineHeight | Yes | Yes | Yes | Yes | Yes |
返回 lineHeight 属性:
object.style.lineHeight
设置 lineHeight 属性:
object.style.lineHeight = "normal|
number|
length|
%|initial|inherit"
Value | Description |
---|---|
normal | Normal line height is used. This is default |
number | A number that will be multiplied with the current font size to set the line height |
length | Defines the line height in length units |
% | Defines the line height in % of the current font size |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
默认值: | 普通的 |
---|---|
返回值: | 一个字符串,表示文本中行之间的距离 |
CSS版本 | CSS1 |
CSS教程:CSS 文本
CSS 参考:行高属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!