在html中绘制表格使用table标签
下面是一个列子。
<html> <head> <title>Table in html</title> </head> <body> <p>水平表头</p> <table border="1"> <tr> <th>Name</th> <th>Age</th> <th>Gender</th> </tr> <tr> <td>zdd</td> <td>30</td> <td>male</td> </tr> </table> <p>垂直表头</p> <table border="1"> <tr> <th>Name</th> <td>autumn</td> </tr> <tr> <th>Age</th> <td>30</td> </tr> <tr> <th>Gender</th> <td>famale</td> </tr> </table> </body></html>
效果图
水平表头
|              Name              |                          Age              |                          Gender              |         
|              zdd
 
学习交流 
 
 热门图片 
猜你喜欢的新闻 
新闻热点 2024-06-26 22:28:41 
2024-06-26 22:26:16 
2024-06-26 22:23:01 
2024-06-25 19:29:23 
2024-06-25 19:22:14 
2024-06-25 19:19:15 
疑难解答  |