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