在 HTML 表格中使用 abbr 属性:
</>code
- <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>
abbr 属性规定单元格中内容的缩写版本。
abbr 属性不会在普通的 web 浏览器中造成任何视觉效果方面的变化。
屏幕阅读器可以利用该属性。
由于在普通的 web 浏览器中不会造成任何视觉效果方面的变化,因此很难说是否存在对 abbr 属性的支持。
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
Powered by 365建站网 RSS地图 HTML地图
copyright © 2013-2024 版权所有 鄂ICP备17013400号