编辑下面的代码:【加编码】
<html> <body> <p>Table without cellpadding:</p> <table border="1"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> </table> <p>Table with cellpadding:</p> <table border="1" cellpadding="10"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> </table> <p><b>Note:</b> The cellpadding attribute is not supported in HTML5. Use CSS instead.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂