| Attempt | #1 | #2 | #3 | #4 | #5 | #6 | #7 | #8 | #9 | #10 | #11 | #12 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| Seconds | 301 | 283 | 290 | 286 | 289 | 285 | 287 | 287 | 272 | 276 | 269 | 254 |
使您的示例更短,以便更容易理解。
| Attempt | #1 | #2 |
| :---: | :---: | :---: |
| Seconds | 301 | 283 |
并格式化以使其更易于阅读。
| Attempt | #1 | #2 |
| :---: | :-: | :-: |
| Seconds | 301 | 283 |
标题必须用竖线字符分隔并用破折号字符|
下划线。-
您可以通过组合单词列表并用连字符-
(第一行)将它们分隔,然后用管道分隔每一列来创建表格|
。
First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell | Content Cell
出于美学目的,您还可以在末端添加额外的管道:
| First Header | Second Header |
| ------------- | ------------- |
| Content Cell | Content Cell |
| Content Cell | Content Cell |
— GitHub 风格的 Markdown
我们的例子变成:
| Attempt | #1 | #2 |
| ------- | --- | --- |
| Seconds | 301 | 283 |
最后,通过在标题行中包含冒号 :,您可以将文本定义为左对齐、右对齐或居中对齐:
| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -----:|
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
— GitHub 风格的 Markdown
所以为了居中对齐,我们的例子变成:
| Attempt | #1 | #2 |
| :-----: | :-: | :-: |
| Seconds | 301 | 283 |