CSS文字间距
文字缩进
text-indent 属性用于指定文本第一行的缩进:
实例
p {text-indent: 50px;}字母间距
letter-spacing 属性用于指定文本中字符之间的间距。
实例
h1 {letter-spacing: 3px;}
h2 {letter-spacing: -3px;}行高
line-height 属性用于指定行之间的间距:
实例
p.small {line-height: 0.8;}
p.big {line-height: 1.8;}字间距
word-spacing 属性用于指定文本中单词之间的间距。
实例
h1 {word-spacing: 10px;}
h2 {word-spacing: -5px;}空白
white-space 属性指定元素内部空白的处理方式。
实例
p {white-space: nowrap;}