<style>
table {
  border-collapse: collapse;
}

td {
  width: 100px;
}
</style>
<table>
<tr><td></td></tr>
<tr id=borderChange><td></td></tr>
</table>
<script>
document.body.offsetHeight;
borderChange.style.borderTop = "100px solid green";
</script>
