<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body,html {
font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
}
:root {
--boder-color: #ebebeb;
}
table {
border: var(--boder-color) solid 1px;
color: #606266;
}
table.border {
border-right: 0px;
}
table.border tr th {
border-right: var(--boder-color) solid 1px;
}
table.border tr td {
border-right: var(--boder-color) solid 1px;
}
table thead tr th {
color: #909399;
min-width: 180px;
box-sizing: border-box;
padding: 5px;
border-bottom: var(--boder-color) solid 1px;
height: 50px;
}
table tbody tr:last-child td {
border-bottom: 0px;
}
table tbody tr {
}
table tbody tr:hover td {
background-color: #f8f8f8;
}
table tbody tr td {
transition: ease-in-out 0.3s;
padding: 12px 10px;
box-sizing: border-box;
border-bottom: var(--boder-color) solid 1px;
}
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th>标题1</th>
<th>标题2</th>
<th>标题3</th>
</tr>
</thead>
<tbody >
<tr>
<td>content1</td>
<td>content2</td>
<td>content3</td>
</tr>
<tr>
<td>content1</td>
<td>content2a</td>
<td>content3</td>
</tr>
</tbody>
</table>
</body>
</html>
基础table表格
最新推荐文章于 2024-03-31 14:25:55 发布