Data analysis, generally need to display data, you need to use HTML to make complex tables. Complex tables are generally rowspan, colspan attribute values for TD.
In HTML <td> tags define standard cells in an HTML table.
(1) The rowspan attribute specifies the number of rows that a cell can span;
(2) The Colspan property specifies the number of columns that a cell can span.
1 <!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd ">2 <HTML>3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">5 <title>Complex tables</title>6 </Head>7 <Body>8 <Center>9 <Tablewidth= "20%"Border= "1">Ten <TR> One <th>Website</th> A <thcolspan= "2">Statistical information</th> <!--colspan= "2" placeholder, indicating that this column occupies 2 columns - - </TR> - <TR> the <TDrowspan= "3">Qihoo 360</TD> <!--rowspan= "2" placeholder, indicating that this column occupies 3 rows - - <TD>http://hao.360.cn/</TD> - <TD>11</TD> - </TR> + <TR> - <TD>http://sh.qihoo.com/</TD> + <TD>22</TD> A </TR> at <TR> - <TD>http://video.so.com/</TD> - <TD>33</TD> - </TR> - </Table> - </Center> in </Body> - </HTML>
Show:
RowSpan, colspan can be understood as a placeholder. The number of rows and columns.
HTML Making complex table