The usage of Markdown---表格
更新时间:2019.09.14
谈到怎么在Markdown中插入表格,其实只要熟知以下几点就可以了:
- 使用管道符
|进行内容的分割 - 使用冒号
:和连号符-表示表格内容的对齐情况,连号符-在中间,冒号:在左端表示左对齐,在右端表示右对齐,两端都有表示居中 - 每一行最左端和最右端的管道符
|都可以省略
<!--完整写法-->
|name|gender|score|
|:-|:-:|-:|
|Alex|male|90|
|Sheley|female|95|
|John|male|85|
实际效果:
| name | gender | score |
|---|---|---|
| Alex | male | 90 |
| Sheley | female | 95 |
| John | male | 85 |
<!--省略写法-->
name|gender|score
:-|:-:|-:
Alex|male|90
Sheley|female|95
John|male|85
实际效果:
| name | gender | score |
|---|---|---|
| Alex | male | 90 |
| Sheley | female | 95 |
| John | male | 85 |

浙公网安备 33010602011771号