headers 演示

两级表头

2026 年上半年月度数据
月份 Q1 Q2
访问 转化 访问 转化
1 月 1200 36 1500 45
2 月 1300 39 1600 48

headers 写法

<th id="jan" scope="row">1 月</th>
<td headers="jan q1-visits">1200</td>

每个 headers 要覆盖行名与所有列名,不能只写一个。