the outer border of the table is not displayed correctly when paging, how to solve it?
<!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>Document</title>
<style>
body {
font-size: 14px;
}
* {
box-sizing: border-box;
}
table {
width: 100%;
border: 2px solid red;
border-collapse: collapse;
line-height: 1.5em;
}
thead th {
border: 1px solid -sharpeeeeee;
}
thead tr:last-child th,
thead th[colspan] {
padding: 0.2em 0;
}
thead tr:last-child th,
thead th[rowspan] {
border-bottom: 1px solid -sharpcccccc;
}
td {
padding: 0.6em 0;
text-align: center;
border: 1px solid -sharpeeeeee;
}
th {
font-weight: normal;
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<th rowspan="2"></th>
<th rowspan="2"></th>
<th rowspan="2"></th>
<th colspan="2"></th>
<th rowspan="2"></th>
<th rowspan="2"></th>
<th colspan="2"></th>
<th rowspan="2"></th>
</tr>
<tr>
<th><small>(%)</small></th>
<th><small>(%)</small></th>
<th><small>(%)</small></th>
<th><small>(%)</small></th>
</tr>
</thead>
<tbody>
<tr>
<td>1111</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
<tr>
<td>1</td>
<td>3000</td>
<td>2600</td>
<td>400</td>
<td>400</td>
<td>20400</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
<td>16900</td>
</tr>
</tbody>
</table>
</body>
</html>