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

CSS
CSS 介绍
CSS 语法
使用 CSS
CSS 背景
CSS 文字
CSS 字体
CSS 边框
CSS 边距
CSS 填充
CSS 列表
CSS 尺寸
CSS 类别
CSS 定位
CSS 伪类
CSS 伪元素
CSS2 Media类型
CSS 摘要
CSS 实例
CSS2 参考资料
CSS2 打印

CSS line-height属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 381 ::
收藏到网摘: 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

登陆 | 还没注册?