HTML: <th> axis 属性

由网友 大卫 发布 阅读 10

HTML: <th> axis 属性

axis属性用于对标题单元格进行分类。axis属性可用于对信息的相关列进行分组。axis属性在普通的Web浏览器中没有视觉效果,但是可以由屏幕阅读器使用。

 HTML <th> 标签

在线示例

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

<table style="width:100%" border="1">
  <tr>
    <th axis="name">姓名</th>
    <th axis="contact">邮件地址</th>
    <th axis="contact">手机号码</th>
    <th axis="contact">地址</th>
  </tr>
  <tr>
    <td axis="name">马六</td>
    <td axis="contact">test@example.com</td>
    <td axis="contact">+13212345678</td>
    <td axis="contact">上海市闵行区</td>
  </tr>
</table>
测试看看 ‹/›

浏览器兼容性

IEFirefoxOperaChromeSafari

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

定义和用法

HTML5 不支持 <th> axis 属性。

axis属性用于对标题单元格进行分类。
axis属性可用于对信息的相关列进行分组。

语法

<th axis="category_name">

属性值

描述
category_name指定类别的名称。
 HTML <th> 标签

HTML: <th> bgcolor 属性 HTML style scoped 属性