表格

表格相当于html里面的<table>标签

1: md标签使用方法:

语法:

|left      |middle    |right     |
|----------|:----------:|----------:|
|1         |2         |3         |
|4         |5         |6         |
|7         |8         |9         |

结果:

left middle right
1 2 3
4 5 6
7 8 9

2: html标签使用方法:

语法:

<table>
    <tr>
        <th>left</th><th>middle</th><th>right</th>
    </tr>
    <tr>
        <td>1</td><td align="middle">2</td><td align="right">3</td>
    </tr>
    <tr>
        <td>4</td><td align="middle">5</td><td align="right">6</td>
    </tr>
    <tr>
        <td>7</td><td align="middle">8</td><td align="right">9</td>
    </tr>

</table>

结果:

leftmiddleright
123
456
789

results matching ""

    No results matching ""