x
 
<!DOCTYPE html>
<html>
<body>
<table id="myTable" border="1">
  <tr>
    <th>月份</th>
    <th>存款</th>
  </tr>
  <tr>
    <td>一月</td>
    <td>$100</td>
  </tr>
  <tr>
    <td>二月</td>
    <td>$150</td>
  </tr>
</table>
<br>
<button type="button" onclick="myFunction()">折叠边框</button>
<script>
function myFunction() {
  document.getElementById("myTable").style.borderCollapse = "collapse";
}
</script>
</body>
</html>