目录
1.3设置边框分离,合并 默认是 separate(分离) collapse (合并);
1.设置表格的边框
border:设置表格边框;
border-spacing :设置单元格的间距;
border-collapse:设置边框分离,合并 默认是 separate(分离) collapse 合并;
padding:设置单元格内容和边框之间的距离;
我们先来建立一个表格:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<table>
<!-- 标题caption -->
<caption>学生信息</caption>
<!-- 表头thead -->
<thead>
<tr>
<th>序号</th>
<th>学号</th>
<th