大风车的旋转表格制作
选择角色2019-02-17 10:51:38354<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>表格</title>
</head>
<style>
table {
border-collapse: collapse;
margin: 0 auto;
}
table tr {}
table tr td {
border: solid 3px lightgray;
width: 100px;
height: 100px;
}
table tr:nth-child(1) td:nth-child(1) {
background: red;
}
table tr:nth-child(1) td:nth-child(2) {
background: blue;
}
table tr:nth-child(2) td:nth-child(1) {
background: green;
}
table tr:nth-child(2) td:nth-child(2) {
background: black;
}
table tr:nth-child(3) td:nth-child(1) {
background: yellow;
}
</style>
<body>
<table>
<tr>
<td colspan="2"></td>
<td rowspan="2"></td>
</tr>
<tr>
<td rowspan="2"></td>
<td></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
</body>
</html>