<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="zh-CN" xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <p>无单元格内边距的表格:</p> <table border="1"> <tr> <th>月份</th> <th>存款</th> </tr> <tr> <td>一月</td> <td>$100</td> </tr> </table> <p>有单元格内边距的表格:</p> <table border="1" cellpadding="10"> <tr> <th>月份</th> <th>存款</th> </tr> <tr> <td>一月</td> <td>$100</td> </tr> </table> </body> </html>
结果:
编辑上面的代码,点击查看结果。
yige.org
- 试一个