代码如下:
border 为边框的厚度为1px(像素)
rules 为合并相邻之间表格的边框
cellpadding:代表单元格边框到内容之间的距离(留白)
cellspacing:用来指定表格各单元格之间的空隙。参数值是数字,表示单元格间隙的大小,单位为px。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表格联系</title>
</head>
<body>
<table bgcolor="#f0f8ff" bordercolor = "white" cellpadding="2px" border="1px"rules="all" frame="void" align="center" width="700px" height = "300px">
<tr height = "40px" >
<th bgcolor="red"&g