示例工程 06-text-typography
06-text-typography/app/README.md
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
# 06-text-typography / app
文本与排版实验室:系统字体栈、字号比例、行高、行宽、首行缩进、`text-wrap: balance`。
## 运行
```bash
cd tutorials/css
python3 -m http.server 8080
# 打开 http://127.0.0.1:8080/examples/06-text-typography/app/
```
## 关键点
- 字体栈优先使用系统字体,不下载
- 正文 `max-width: 68ch` 控制行宽
- 正文行高 1.75,标题 1.15
- 中文首行缩进用 `2em`,不用空格
- 标题与短句用 `text-wrap: balance`