What is the problem with the border of the print table table?

the outer border of the table is not displayed correctly when paging, how to solve it?

clipboard.png

clipboard.png

<!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>
Jun.30,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37e44-2b619.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37e44-2b619.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?