Processing of Markdown table, markdown table

Source: Internet
Author: User

Processing of Markdown table, markdown table

The insert Table Code is as follows:

<Table class = "table-bordered table-striped table-condensed"> <tr> <td> Beijing </td> <td> smog </td> </tr> <tr> <td> Shenzhen </td> <td> rainstorm </td> </tr> </table>
It is found that a class attribute is added to the table. If only the table label is used, it does not work.

Table-bordered: border with rounded corners and vertical bars

Table-striped: The color of the parity row is different.

Table-condensed: Compressed line spacing


In addition to the above, there are other options:

1. If the header and content are different, you can replace <td> header content </td> with <th> header content </th>.

2. If the text in the table needs to be wrapped in a new line, you can add <br> after the content to be wrapped in the new line.

3. If there is code in the text, you can use: <code> code </code>.

4. If the table contains content that needs to be italic, you can use: <I> italic content </I>.

5. If there are cells that span rows or columns, you can use <th colspan = "Cross columns"> content </th> or rowspan.

6. To adjust the width of a column, use <th width = "width or percentage"> header content </th>.


The final effect is as follows:


Author: itmyhome


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.