CSS修饰表格
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS修饰表格</title>
<style>
table{
text-align:center;/*文字的居中全部用text-align*/
table-layout:fixed;/*给表格固定*/
/*word-wrap:break-word;表格内容自动换行*/
border-collapse:collapse;/*让表格边框变成一条线*/
}
</style>
</head>
<body>
<table border="1" width="600px" height="100px" align="center" cellspacing="5px" cellpadding="10px">
<tr>
<td>小明</td>
<td>6</td>
<td>一年级</td>
</tr>
<tr>
<td>小明</td>
<td>6</td>
<td>一年级dfjkdhhkjhkjdhjkhgjkfhdkjgfkdjhgjkdhjk</td>
</tr>
<tr>
<td>小明</td>
<td>6</td>
<td>一年级</td>
</tr>
</table>
</body>
</html>