Home > Article > Backend Development > The structure of table tags and the implementation method of merging cells_PHP tutorial
1. 这是合并了四个单元格Structure of tags
Sample code:
#
td>
3 td>
>
< /table>
A complete example:
Copy the code
The code is as follows:
#
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.合并上下的单元格(rowspan)
示例代码:
#
Firstname
Lastname
Phone
QQ
1
qian
shou
11111111111
111111111
qian
shou
11111111111
111111111
3
qian
shou
11111111111
111111111
4
qian
shou
11111111111
111111111
3.合并左右的单元格(colspan)
示例代码:
#
Firstname
Lastname
Phone
QQ
1
2
qian
shou
11111111111
111111111
3
qian
shou
11111111111
111111111
4
qian
shou
11111111111
111111111
Related articles
See more