Brother Lian Learn python----table merge cells colspan and rowspan

Source: Internet
Author: User

Both the colspan and rowspan properties are used to create special tables. colspan is the abbreviation for column span (cross-column). The Colspan property is used in the TD tab to specify the number of columns that the cell crosses across: Cell 1 cell 2 cell 3 cell 4 The example makes the cell span three columns by setting colspan to "3". If we set colspan to "2", the cell will only span two columns, so it is necessary to insert another cell in the first row to ensure that the two rows occupy the same number of columns. The example is shown in the browser as follows: Cell 1 cell 2 cell 3 cell 4 cell 5rowspan is the number of rows that you specify that the cell spans vertically. The browser will appear as follows:
Cell 1 Cell 2 cell 3 cell 4 The previous example of cell 1, whose rowspan is set to "3", means that the cell must span three rows (itself, plus two other lines). Therefore, cell 1 and cell 2 are on the same line, and cell 3 and cell 4 form two separate lines. Comprehensive example ss

  

Brother Lian Learn python----table merge cells colspan and rowspan

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.