The usage of Markdown --- table

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:

  1. Use the pipe |for content segmentation
  2. 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,
  3. 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

Guess you like

Origin www.cnblogs.com/liangjianli/p/11519693.html