<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>title</title> </head> <body> <table border="1"> <tr> <th>姓名</th> <td>小黑</td> </tr> <tr> <th>年龄</th> <td>18</td> </tr> </table> <p>这样就可以简单实现竖直的表头</p> </body> </html>