1 Star 0 Fork 0

一路踩红/interview

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
table.html 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
一路踩红 提交于 2020-01-01 22:19 . yuan
<!DOCTYPE html>
<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>table</title>
</head>
<body>
<style>
tbody>tr:nth-child(2n) {
background: gray;
}
tbody>tr:nth-child(2n + 1) {
background: #fff;
}
tbody>tr:hover {
background: yellow;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
th,
td {
padding: 0;
}
</style>
<table>
<thead>
<tr>
<th>班级</th>
<th>姓名</th>
</tr>
</thead>
<tbody>
<tr>
<td>1班</td>
<td>张三</td>
</tr>
<tr>
<td>1班</td>
<td>张三</td>
</tr>
<tr>
<td>1班</td>
<td>张三</td>
</tr>
<tr>
<td>1班</td>
<td>张三</td>
</tr>
<tr>
<td>1班</td>
<td>张三</td>
</tr>
</tbody>
</table>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/a13078253870/interview.git
[email protected]:a13078253870/interview.git
a13078253870
interview
interview
master

搜索帮助