61,112
社区成员
发帖
与我相关
我的任务
分享
<html>
<body>
<table border="1">
<tr>
<th>c1</th>
<th>c2</th>
</tr>
<tr align="left">
<th>c1content</th>
<th>c2content</th>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>表格</title>
</head>
<body>
<table border="1"> <!-- 表格标签<table>,设定表格边框为1 -->
<tr> <!-- tr为行标签 -->
<th>c1</th> <!-- td为表格头标签,默认为黑体 -->
<th>c2</th>
</tr>
<tr align="left"> <!-- tr为行标签,该行的内容为左对齐 -->
<th>c1content</th> <!-- 这里你可以设成<td>标签,你也可以使用CSS改变内容的格式 -->
<th>c2content</th>
</tr>
</table>
</body>
</html>