CSS 文本
CSS 文本模块定义了如何对文本进行排版控制,例如换行、对齐与两端对齐、空白符处理以及文本转换等操作。
参考
属性
hanging-punctuation
hyphenate-character
hyphenate-limit-chars
hyphens
letter-spacing
line-break
overflow-wrap
(以及word-wrap
别名)tab-size
text-align
text-align-last
text-indent
text-justify
text-spacing-trim
实验性text-transform
text-wrap
text-wrap-mode
text-wrap-style
white-space
white-space-collapse
word-break
word-spacing
该规范还定义了 hyphenate-limit-last
、hyphenate-limit-lines
、hyphenate-limit-zone
、line-padding
、text-align-all
、text-autospace
、text-group-align
、text-spacing
、white-space-trim
、word-space-transform
、wrap-after
、wrap-before
和 wrap-inside
属性,但目前尚未被任何浏览器支持。
指南
- 文本换行与断字
-
以下是关于如何在 CSS 中管理溢出文本的各种方式的指南。
相关概念
属性
值
HTML
规范
Specification |
---|
CSS Text Module Level 3 |
CSS Text Module Level 4 |
参见
- CSS 书写模式模块
- CSS 溢出模块
- CSS 字体模块
- CSS ruby 布局模块
- CSS 文本装饰模块