Updated: 2019.09.14
He talked about how Markdown inserted in the table, in fact, as long as it is well known the following points:
- Use the pipe
|
for content segmentation - Colon
:
and even symbol number-
represented by the alignment of the table of contents, even symbol number-
in the middle of the colon:
in the left represents the left aligned, right aligned at right end, each end is centered, - Each row of the leftmost and rightmost pipe characters
|
can be omitted
<!--完整写法-->
|name|gender|score|
|:-|:-:|-:|
|Alex|male|90|
|Sheley|female|95|
|John|male|85|
actual effect:
name | gender | score |
---|---|---|
Alex | male | 90 |
Sheley | female | 95 |
John | male | 85 |
<!--省略写法-->
name|gender|score
:-|:-:|-:
Alex|male|90
Sheley|female|95
John|male|85
actual effect:
name | gender | score |
---|---|---|
Alex | male | 90 |
Sheley | female | 95 |
John | male | 85 |