如何插入表格
1 | |title|long title|title| |
效果如下:
title | long title | title |
---|---|---|
short content | short content | a long piece of content |
a long piece of content | short content | short content |
注:多余出来的空格和-
并不影响最后的输出效果,-
至少有一个就行了。
在对齐方式上,默认标题居中对齐,内容居左对齐,通过:
可以调整表格列的对齐方式。
1 | | title | long title | title | |
:-
是左对齐,:-:
是居中对齐,-:
是右对齐
效果如下:
title | long title | title |
---|---|---|
short content | short content | a long piece of content |
a long piece of content | short content | short content |