跳到内容(1) Cob.com.cn

CodeCoke

CSS2.0中文手册·line-height

您的位置:首页>>教程>>CSS2.0中文手册>>line-height

line-height

版本:CSS1  兼容性:IE4+ NS4+ 继承性:有

语法:

参数:

  1. normal :  默认行高
  2. length :  百分比数字 | 由浮点数字和单位标识符组成的长度值,允许为负值。其百分比取值是基于字体的高度尺寸。请参阅长度单位

说明:

示例:

div {line-height:6px; }

div {line-height:10.5; }

效果

请您用下面的按钮选择这段文字的line-height属性的值。看一看会发生什么,然后您就会明白这个属性的意义。希望您喜欢CobStudio,谢谢。