源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> <style> table, th, td { border: 1px solid black; } </style> </head> <body> <table> <tr> <th>月份</th> <th>存款</th> </tr> <tr> <td>一月</td> <td>$100</td> </tr> <tr> <td>二月</td> <td>$80</td> </tr> <tr> <td colspan="2">合计: $180</td> </tr> </table> </body> </html>
运行结果