在本章中,您将了解以下属性:
text-indent
letter-spacing
line-height
word-spacing
white-space
这个text-indent
属性用于指定文本第一行的缩进:
这个letter-spacing
属性用于指定文本中字符之间的间距。
以下示例演示如何增加或减少字符之间的间距:
这个line-height
属性用于指定行之间的间距:
这个word-spacing
属性用于指定文本中单词之间的间距。
以下示例演示了如何增加或减少单词之间的间距:
这个white-space
属性指定如何处理元素内的空白。
此示例演示如何禁用元素内的文本换行:
Property | Description |
---|---|
letter-spacing | Specifies the space between characters in a text |
line-height | Specifies the line height |
text-indent | Specifies the indentation of the first line in a text-block |
white-space | Specifies how to handle white-space inside an element |
word-spacing | Specifies the space between words in a text |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!