HTML基础知识补充
1.表格
- 定义
实例
<table border=‘1‘ cellpadding=‘0‘ cellspacing=‘0‘><!--cellpadding为单元格边距(内层),cellspacing为单元格间距(外层)--> ???<caption>这是标题</caption> ???<thead><!--这是页眉--> ???????<tr> ???????????<th>这是表头</th> ???????????<th>这是表头</th> ???????????<th>这是表头</th> ???????</tr> ???</thead> ???<tbody><!--这是表格主体--> ???????<tr> ???????????<td>这是表格单元</td> ???????????<td>这是表格单元</td> ???????????<td>这是表格单元</td> ???????</tr> ???</tbody> ???<tfoot><!--这是页脚--> ???????<tr> ???????????<td>这是页脚</td> ???????????<td>这是页脚</td> ???????????<td>这是页脚</td> ???????</tr> ???</tfoot></table>
效果
HTML知识补充
原文地址:https://www.cnblogs.com/upxiao/p/9384762.html