learn.md 1.6 KB
Newer Older
F
feilong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# 表格

请点击[表格](https://codechina.csdn.net/courses/register/2/9) 并完成所有题目,完成学习请关闭Issue。

通过对[表格](https://codechina.csdn.net/courses/register/2/9)的学习,以下哪个表格语法不对?

## 答案

```bash
| header 1 |
 header 2 | header 3 |
|:-------- | :------: | --------:|
| left-aligned 文本居左 | centered 文本居中 |  right-aligned 文本居右 |
| `:---` 左侧冒号表示**内容和标题栏**居左对齐 |  `:--:` 两端都有冒号表示**内容和标题栏**居中对齐 | `---:` 右侧冒号表示**内容和标题栏**居右对齐 |
```

## 选项

### A

```bash
| header 1 | header 2 | header 3 |
|:-------- | :------: | --------:|
| left-aligned 文本居左 | centered 文本居中 |  right-aligned 文本居右 |
| `:---` 左侧冒号表示**内容和标题栏**居左对齐 |  `:--:` 两端都有冒号表示**内容和标题栏**居中对齐 | `---:` 右侧冒号表示**内容和标题栏**居右对齐 |
```

### B

````bash
| header 1 | header 2 | header 3 |
| ---      |  ------  |---------:|
| cell 1   | cell 2   | cell 3   |
| cell 4 | cell 5 is longer | cell 6 is much longer than the others, but that's ok. It will eventually wrap the text when the cell is too large for the display size. |
| cell 7   |          | cell <br> 9 |
````

### C

````bash
| header 1 | header 2 | header 3 |
| :---      |  :------:  |---------:|
| cell 1   | cell 2   | cell 3   |
| cell 4 | cell 5 is longer | cell 6 is much longer than the others, but that's ok. It will eventually wrap the text when the cell is too large for the display size. |
| cell 7   |          | cell <br> 9 |
````