<script type="text/javascript">
document.getElementById('myTable').cellPadding="15"
document.getElementById('myTable').cellSpacing="15"
<table id="myTable" border="1">
<input type="button" onclick="padding()" value="改变 Cellpadding">
<input type="button" onclick="spacing()" value="改变 Cellspacing">