示例工程 19-table-accessibility

19-table-accessibility/demo-02-headers/README.md

markdown · 0.2 KB

运行:headers 演示

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

# demo-02-headers

两级表头的 id + headers 关联。

## 观察

- 分组表头用 scope="colgroup",子表头用 scope="col"
- 行名 th 有 id
- 数据单元格 headers 引用行 id 与列 id
- 读屏会按 headers 顺序播报上下文