markdown表格制作

2018-05-23  本文已影响0人  AndyFfeng
表头1 表头2 表头3
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell
表头1 表头2 表头3
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell
名字 描述
Help Display the help window.
Close Closes a window

表格中也可以使用普通文本的删除线,斜体等效果

名字 描述
Help Display the help window.
Close Closes a window

表格可以指定对齐方式

左对齐 居中 右对齐
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1

表格中单元格合并

行合并

表头1 表头2 表头3
3 >
--- --- ---
Content Cell Content Cel Content Cell

markdown兼容html实现单元格操作

<table>
<tr>
<td>列一</td>
<td>列一</td>
</tr>
<tr>
<td colspan="2">合并行</td>
</tr>
<tr>
<td colspan="2">合并行</td>
</tr>
</table>

合并列

<table>
<tr>
<td>列一</td>
<td>列一</td>
</tr>
<tr>
<td rowspan="2"合并列</td>
<td>行</td>
</tr>
<tr>
<td>行</td>
</tr>
</table>

表格嵌套

<table>
<tr>
<td>列一</td>
<td>列一</td>
</tr>
<tr>
<td rowspan="2">
<table>
<tr>
<td>列一</td>
<td>列一</td>
</tr>
<tr>
<td rowspan="2"合并列</td>
<td>行</td>
</tr>
<tr>
<td>行</td>
</tr>
</table>
</td>
<td>行</td>
</tr>
<tr>
<td>行</td>
</tr>
</table>


表格嵌套

表头1 表头2 表头3
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell
上一篇 下一篇

猜你喜欢

热点阅读