指南 / 字体排印

标题换行

多行标题用 text-wrap: balance,两行长度尽量均等,别一行长一行短一个词。

在线演示

这是一个会换行并留下
一个孤词的超长标题
这是一个两行均衡的超长标题
上:普通换行 · 下:均衡换行

实现提示词

标准

Apply text-wrap: balance to headings so multi-line titles wrap into evenly balanced lines.

含动效

Apply text-wrap: balance to headings with a smooth fade-in on line reflow.
设计规范条目
### Balanced Headlines (#text-balance)

Category: Typography

Use text-wrap: balance on multi-line headings so wrapped lines are roughly equal — no orphan words.

- Do: Apply text-wrap: balance to headings so multi-line titles wrap into evenly balanced lines

- Avoid: no orphan words

With motion: Apply text-wrap: balance to headings with a smooth fade-in on line reflow.

Live demo: https://uidesignmd.com/guides/text-balance/

规范包

从所选指南中导出实现规则和链接。

已选指南 0 / 20