diff --git a/docs/markdown.md b/docs/markdown.md index 80567a0..fc27e8f 100644 --- a/docs/markdown.md +++ b/docs/markdown.md @@ -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/)