The structure of the table tag in css and the example code of the merged cell
This article introduces the knowledge of "the structure of table tags in css and the instance code of merged cells". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Structure of the label
Sample code:
The copy code is as follows:
Information statistical table
#
one
two
three
four
A complete example:
The copy code is as follows:
Information statistical table
#
Firstname
Lastname
Phone
one
Qian
Shou
11111111111
111111111
two
Qian
Shou
11111111111
111111111
three
Qian
Shou
11111111111
111111111
four
Qian
Shou
11111111111
111111111
two。 Merge upper and lower cells (rowspan)
Sample code:
The copy code is as follows:
Information statistical table
#
Firstname
Lastname
Phone
one
Qian
Shou
11111111111
111111111
Qian
Shou
11111111111
111111111
three
Qian
Shou
11111111111
111111111
four
Qian
Shou
11111111111
111111111
3. Merge left and right cells (colspan)
Sample code:
The copy code is as follows:
Information statistical table
#
Firstname
Lastname
Phone
one
This is a merge of four cells.
two
Qian
Shou
11111111111
111111111
three
Qian
Shou
11111111111
111111111
four
Qian
Shou
11111111111
111111111
This is the end of the content of "the structure of the table tag in css and the instance code of merging cells". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!