集册 HTML 标签教程 HTML <th> axis 属性

HTML <th> axis 属性

Xebcnor     最近更新时间:2019-10-10 03:24:59

423

HTML <th> axis 属性

HTML th 标签参考手册 HTML <th> 标签

实例

带有分类表头单元格的 HTML 表格:

<table border="1" width="100%">
  <tr>
    <th axis="name">Name</td>
    <th axis="contact">Email</td>
    <th axis="contact">Phone</td>
    <th axis="contact">Address</td>
  </tr>
  <tr>
    <td>John Doe</td>
    <td>someone@example.com</td>
    <td>+45342323</td>
    <td>Rosevn 56,4300 Sandnes,Norway</td>
  </tr>
</table>

运行实例

浏览器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

axis 属性在普通的 Web 浏览器中没有视觉效果,但可以通过屏幕阅读器使用。

定义和用法

HTML5 不支持 <th> axis 属性。

axis 属性用于对表头单元格进行分类。

axis 属性可用于对相关的信息列进行组合。

语法

<th axis="category_name">

属性值

展开阅读全文