CSS 文本
CSS 文本模块定义了如何对文本进行排版控制,例如换行、对齐与两端对齐、空白符处理以及文本转换等操作。
参考
>属性
hanging-punctuationhyphenate-characterhyphenate-limit-charshyphensletter-spacingline-breakoverflow-wrap(以及word-wrap别名)tab-sizetext-aligntext-align-lasttext-indenttext-justifytext-spacing-trim实验性text-transformtext-wraptext-wrap-modetext-wrap-stylewhite-spacewhite-space-collapseword-breakword-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 文本装饰模块