docs: update markdown.md (#163)
This commit is contained in:
parent
afbfcc2285
commit
f22b15c77d
@ -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/)
|
||||
|
Loading…
x
Reference in New Issue
Block a user