HTML < th > axis 属性,用于对表头单元格进行分类

 2022-06-20    436  

HTML <th> axis 属性

HTML <th> 标签

HTML < th > axis 属性,用于对表头单元格进行分类

实例

带有分类表头单元格的 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>

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

定义和用法

HTML5 不支持 <th> axis 属性。

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

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

语法


<th axis="category_name">

属性值

描述
category_name规定类别的名称。


  •  标签:  
  • html
  •  

原文链接:https://77isp.com/post/1399.html

=========================================

https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。