当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS line-height属性

CSS
CSS2 Aural
CSS 单位
CSS 颜色
CSS 颜色值
CSS 颜色名称
CSS 编码与组织技巧
CSS 模块化设计思路
CSS完美兼容IE6/IE7/FF的通用方法
CSS @ Ten: 下一个重要的东西

CSS line-height属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 382 ::
收藏到网摘: n/a

The line-height property sets the distance between lines.
line-height属性可以设置行与行之间的距离

Note: Negative values are not allowed.
注意:不可使用否定值

Inherited: Yes
继承性:有

Example
举例

p

line-height: 1.4
}

p

line-height: 14pt

p

line-height: 140%
}  

Possible Values
可用的值

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
按当前文字大小来以百分比来设置行间距离

评论 (0) All

登陆 | 还没注册?