-
细胞填充:
Cellpadding 指定表格单元格边框与其内容之间的空间(即)它定义了单元格边缘和单元格内容之间的空白。
句法:
.....
where, value determines the padding (space between the border of a table and its content) -
细胞间距:
Cellspacing 指定单元格之间的空间(即)它定义了相邻单元格边缘之间的空白。
句法:
.....
where, value determines the padding (space between adjacent cells)
例子:
Document
Name
Age
Rani
30
Rajan
35
Akshaya
17
Ashick
13
输出:
cellpadding和cellspacing的区别:
Cellpadding |
Cellspacing |
||||||||
It specifies the space between the border of a table cell and its contents. | It specifies the space between adjacent cells. | ||||||||
It is created by using HTML
|