在表格後面接一段 script 即可。假設表格 ID 是 table1!
<pre class="c" name="code"><table id="table1">
<tr><td>1</td></tr>
...
<tr><td>N</td></tr>
</table>
<script>
var t = document.getElementById('table1');
t.rows[t.rows.length-1].style.backgroundColor = 'gray';
</script>