简单表格
直接使用Markdown自带的表格可以快速建立,但是对表格缺少设置,如果需要设置比较复杂的表格建议使用table。
|表头1|表头2|
|-|-|
|1|2|
表头1 | 表头2 |
---|---|
1 | 2 |
HTML table 表格
<tabel>
:表格声明
<tbody>
:整个表格加载结束以后显示
<th>
:表头
<td>
:表格内容
colspan="2"
:占用两列
rowspan="2"
:占用两行
bgcolor="Pink"
:背景颜色
<table><tbody>
<tr>
<th>表头1</th>
<th>表头2</th>
<th colspan="2">colspan="2"</th>
</tr>
<tr>
<td rowspan="2">rowspan="2"</td>
<td>21</td>
<td bgcolor="Pink">bgcolor="Pink"</td>
<td colspan="2">41</td>
</tr>
<tr>
<td>22</td>
<td>32</td>
<td >42</td>
</tr>
</table>
表头1 | 表头2 | colspan=”2” | ||
---|---|---|---|---|
rowspan=”2” | 21 | bgcolor=”Pink” | 41 | |
22 | 32 | 42 |