docs: update markdown.md (#163)

This commit is contained in:
mancuoj 2022-11-21 21:03:18 +08:00 committed by GitHub
parent afbfcc2285
commit f22b15c77d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,19 +158,27 @@ console.log("This is a block code")
### 表格
```markdown
| 左栏 | 中间栏 | 右栏 |
| ----------| ------------ | --------- |
| 单元格 1 | 居中 | $1600 |
| 单元格 2 | 单元格 3 | $12 |
| 左栏 | 中间栏 | 右栏 |
| -------- | -------- | ----- |
| 单元格 1 | 居中 | $1600 |
| 单元格 2 | 单元格 3 | $12 |
```
简单的风格
```markdown
左栏 | 中间栏 | 右栏
:--- | ---- | ----
单元格 1 | 居中 | $1600
单元格 2 | 单元格 3 | $12
左栏 | 中间栏 | 右栏
-------- | -------- | -----
单元格 1 | 居中 | $1600
单元格 2 | 单元格 3 | $12
```
增加 `:` 改变文字对齐方式
```markdown
左栏 | 中间栏 | 右栏
:------- | :------: | -----:
左对齐 | 居中 | 右对齐
```
Markdown 表格生成器:[tableconvert.com](https://tableconvert.com/)