Table label structure and how to merge cells _ PHP Tutorial

Source: Internet
Author: User
The structure of table labels and the implementation of merging cells. 1. table label structure example code: Copy the code as follows: tablecaption Information Statistics table captiontheadtrth # thtrtheadtbodytrtd1tdtrtd2tdtrtrtd 1.

The code is as follows:


Tag structureSample code:





















Information Statistics table
#
1
2
3
4


A complete example:

The code is as follows:










































Information Statistics table
# Firstname Lastname Phone QQ
1 Qian Shou 11111111111 111111111
2 Qian Shou 11111111111 111111111
3 Qian Shou 11111111111 111111111
4 Qian Shou 11111111111 111111111




2. Merge upper and lower cells (rowspan)
Sample code:

The code is as follows:





































Information Statistics table
# Firstname Lastname Phone QQ
1 Qian Shou 11111111111 111111111
Qian Shou 11111111111 111111111
3 Qian Shou 11111111111 111111111
4 Qian Shou 11111111111 111111111




3. Merge left and right cells (colspan)
Sample code:

The code is as follows:








































Information Statistics table
# Firstname Lastname Phone QQ
1

This is a merge of four cells.

2 Qian Shou 11111111111 111111111
3 Qian Shou 11111111111 111111111
4 Qian Shou 11111111111 111111111


Example code: the code is as follows: table border = "1" caption Information Statistical table/caption thead tr th #/th/tr/thead tbody tr td1/td/tr td2/td/tr td...

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.