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