搜索文档
line-height 属性用于设置多行文本的间距。
line-height
line-height: normal; /* Unitless values: use this number multiplied by the element's font size */ line-height: 3.5;
normal 默认值。
<number> 无单位的数字,表示行高为该数字乘以该元件的字体大小 (font-size)。
<number>
font-size
<length> 指定行高的具体数值。
<length>
normal | <length> | <number>
<text>
line-height 的值最好大于 font-size 的值,否则文本上下可能会被截断。
line-height 属于段落属性,不会作用于 inline text 上。
LCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.