Application of colspan and rowspan

Source: Internet
Author: User

Colspan and rowspan can change the appearance of a table and merge a column or row.

Set <TD> for colspan and rowspan

Rowspan sets the first row so that the Set columns span multiple rows.

Colspan makes the set columns cross multiple columns for any row

 

Rowspan:

 

<Tr>
<TD> A </TD>
<TD rowspan = "3"> B </TD>
</Tr>

<Tr>
<TD> C </TD>
</Tr>

<Tr>
<TD> d </TD>
</Tr>

 

HYBRID:

 

 

<Tr>
<TD rowspan = "2"> A </TD>
<TD rowspan = "2"> A </TD>
<TD colspan = "5"> A </TD>
<TD colspan = "4"> A </TD>
<TD rowspan = "2"> A </TD>
</Tr>

<Tr>
<TD> B </TD>
<TD> B </TD>
<TD> B </TD>
<TD> B </TD>
<TD> B </TD>
<TD> B </TD>
<TD> B </TD>
<TD> B </TD>
<TD> B </TD>
</Tr>

<Tr>
<TD colspan = "12"> C </TD>
</Tr>

 

 

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.