HTML <th> axis 属性
标签" href="tag-main.html"><main>
<map>
<mark>
<menu>
<meta>
<meter>
<nav>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<html>
<picture>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<textarea>
< template>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt>
<u>
<ul>
<var>
<video>
<wbr>
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>
<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 <th> 标签