HTML <td> 標(biāo)簽的 abbr 屬性
定義和用法
abbr 屬性規(guī)定單元格中內(nèi)容的縮寫版本。
abbr 屬性不會在普通的 web 瀏覽器中造成任何視覺效果方面的變化。
屏幕閱讀器可以利用該屬性。
實例
在 HTML 表格中使用 abbr 屬性:
<table border="1">
<tr>
<th>Company</th>
<th>Country</th>
</tr>
<tr>
<td abbr="IBM">International Business Machine</td>
<td>USA</td>
</tr>
<tr>
<td abbr="ICBC">Industrial and Commercial Bank of China</td>
<td>PRC</td>
</tr>
</table>
瀏覽器支持
由于在普通的 web 瀏覽器中不會造成任何視覺效果方面的變化,因此很難說是否存在對 abbr 屬性的支持。
語法
<td abbr="value">
屬性值
| 值 | 描述 |
|---|---|
| text | 單元格的短描述。 |