Markdown 表格语法
表格合并
- 行合并
<table>
<tr>
<td rowspan="3" > rowspan 是行合并,3 是合并 3 行</td>
</tr>
</table>
rowspan 是行合并,3 是合并 3 行 | 1.2 | 1.3 |
2.2 | 2.3 | |
3.2 | 3.3 |
- 列合并
<table>
<tr>
<td colspan="2" > colspan 是列合并,2 是合并 2 列</td>
</tr>
</table>
colspan 是列合并,2 是合并 2 列 | |
1 | 2 |
表格属性配置
- 文字居中
<table>
<tr>
<td colspan="2", align="center" > align="center" 是文字居中</td>
</tr>
</table>
- 背景颜色
<table>
<tr>
<td colspan="2", align="center", bgcolor="Yellow" > bgcolor="Yellow" 是配置背景色</td>
</tr>
</table>