Basic syntax of tables
- Define table
- Define table row - Define table header - Define table Yuan (specific data of the table)
Table with borders:
< ;table border>
Food Drink Sweet A< ;/td> B C
Table without borders:
Table Span spanning multiple rows and columns
Table elements spanning multiple columns
Table elements spanning multiple rows
Morning Menu
Food
Drink
Sweet
A
B
C
Copy code
Table element gap setting:
< ;table border cellspacing=10>
Food Drink Sweet < td>AB C
Internal blank setting of table element:
Food Drink Sweet < ;td>AB C
Alignment/layout of text within the table
#=left, center, right
#=top, middle, bottom, baseline
Food Drink Sweet Other A B < ;td valign=bottom>C D
Food
Drink
Sweet
Other
A
B
C
D
Alignment/layout of the table on the page (Floating Table)
My favorites... cookies, chocolates, and more.
My favorites... cookies, chocolates, and more.
My favorites... cookies, chocolates, and more.
#=space value
My favorites... cookies, chocolates, and more.
My favorites... cookies, chocolates, and more.
表格的标题
... #=left, center, right
Lunch
Food
Drink
Sweet
A
B
C
Lunch
Food
Drink
Sweet
A
B
C
... #=top, bottom
valign=top is default. 代码如下:
Lunch
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
2024-10-22 09:46:29
2024-10-13 13:53:41
2024-10-12 12:15:51
2024-10-11 22:47:31
2024-10-11 19:36:51
2024-10-11 15:50:41
2024-10-11 15:07:41
2024-10-11 14:21:21
2024-10-11 12:59:11
2024-10-11 12:17:31