- 0133技术站
- 联系QQ:88526
- QQ交流群

- 微信公众号

定义
axis 属性是用于对单元格进行分类的,可用于对相关的信息列进行组合。
注:HTML5 不支持 <td> axis 属性。
语法
<td axis="category_name">
属性值
● category_name:规定类别的名称。
浏览器支持
属性 | ![]() | ![]() | ![]() | ![]() | ![]() |
axis | 支持 | 支持 | 支持 | 支持 | 支持 |
axis 属性在普通的 Web 浏览器中没有视觉效果,但可以通过屏幕阅读器使用。
带有分类单元格的 HTML 表格:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>0133技术站(0133.cn)</title> </head> <body> <table border="1" width="100%"> <tr> <th axis="name">姓名</th> <th axis="contact">邮箱l</th> <th axis="contact">电话</th> </tr> <tr> <td axis="name">李华</td> <td axis="contact">1254854@qq.com</td> <td axis="contact">12345645847</td> </tr> </table> <p><b>注意:</b> 大部分主流浏览器不支持 axis 属性。</p> <p><b>注意:</b> HTML5 不支持 axis 属性,可以使用 CSS 代替。</p> </body> </html>
点击 "运行实例" 按钮查看在线实例
推荐手册