运行 ❯
获取您
自己
的网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <table id="myTable" border="1" style="border-spacing:10px;"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$150</td> </tr> </table> <br> <button type="button" onclick="myFunction()">Return the space between the cells in the table</button> <script> function myFunction() { alert(document.getElementById("myTable").style.borderSpacing); } </script> </body> </html>