码迷,mamicode.com
首页 > Web开发 > 详细

html5:表格

时间:2018-03-19 16:54:11      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:属性表   html5   class   htm   span   ble   gpo   scope   通过   

table元素有caption元素、th元素、td元素、tr元素构成。

scope属性表明当前的th是列的标题单元格还是行的标题单元格。

通过使用colspan=n 或 rowspan=n ,从而让单元格横跨多列或者多行。

<table>
 <thead>
      <tr>
<th scope="col">col1</th>
<th scope="col">col2</th>
</tr>   
  </thead>

<tbody>
<tr>
<th scope="row">row1</th>
<td>data1</td>
</tr>
</tbody>

<tbody>
<th></th>
<td></td>
</tbody>

</table>    

 

html5:表格

标签:属性表   html5   class   htm   span   ble   gpo   scope   通过   

原文地址:https://www.cnblogs.com/lingLongBaby/p/8602570.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!