示例工程 18-table-basics

18-table-basics/app/README.md

markdown · 0.4 KB

运行:表格基础 · table / caption / thead / tbody

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

# 18-table-basics / app

表格的 caption、thead/tbody/tfoot、行表头与数值对齐。

## 运行

```bash
cd tutorials/html
python3 -m http.server 8080
# 打开 http://127.0.0.1:8080/examples/18-table-basics/app/
```

## 观察

- caption 说明表格主题
- thead 是列表头,tbody 是数据,tfoot 是合计
- 第一列用 th scope="row" 做行表头
- 数字右对齐,合计在 tfoot
- 表格外层容器可横向滚动