<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.container {
overflow: auto;
max-height: 300px;
}
table {
width: 100%;
padding: 10px;
}
td + td {
border-left: 1px solid #eee;
}
td {
border-bottom: 1px solid #eee;
background: #ddd;
color: #000;
padding: 10px 25px;
}
thead tr {
background-color: #12abcd;
}
th {
height: 20px;
color: black;
border: none;
white-space: nowrap;
}
</style>
<title>Table</title>
</head>
<body>
<section>
<div class="container">
<table>
<thead>
<tr class="header">
<th>
Table attribute name
</th>
<th>
Value
</th>
<th>
Description
</th>
</tr>
</thead>
<tbody>
<tr>
<td>Blue</td>
<td>left, center, right</td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, se</td>
</tr>
<tr>
<td>Gray</td>
<td>rgb(x,x,x), #xxxxxx, colorname</td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, se</td>
</tr>
<tr>
<td>Pink</td>
<td>1,""</td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, se</td>
</tr>
<tr>
<td>Gel</td>
<td>pixels</td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, secell content</td>
</tr>
<tr>
<td>Joe</td>
<td>pixels</td>
<td>NLorem ipsum dolor sit amet, consectetur adipiscing elit, ses</td>
</tr>
<tr>
<td>John</td>
<td>void, above, below, hsides, lhs, rhs, vsides, box, border</td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, se should be visible</td>
</tr>
<tr>
<td>Drew</td>
<td>none, groups, rows, cols, all</td>
<td>Not supported in HTML5. Specifies which parts of the inside borders that should be visible</td>
</tr>
<tr>
<td>Bist</td>
<td>text</td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, se</td>
</tr>
<tr>
<td>Frog</td>
<td>pixels, %</td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, se</td>
</tr>
<tr>
<td>Truth</td>
<td>pixels, %</td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, se</td>
</tr>
<tr>
<td>Dare</td>
<td>pixels, %</td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed</td>
</tr>
</tbody>
</table>
</div>
</section>
</body>
</html>
我是一名优秀的程序员,十分优秀!