HTML <table> 標(biāo)簽的 summary 屬性
定義和用法
summary 屬性規(guī)定表格內(nèi)容的摘要。
summary 屬性不會(huì)對(duì)普通瀏覽器中產(chǎn)生任何視覺變化。
屏幕閱讀器可以利用該屬性。
實(shí)例
下面的例子定義了表格內(nèi)容的摘要:
<table border="1" summary="Monthly savings for the Flintstones family"
>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
瀏覽器支持
由于不會(huì)在普通瀏覽器中產(chǎn)生任何視覺效果,很難判斷瀏覽器是否支持 summary 屬性。
語(yǔ)法
<body summary="value">
屬性值
值 | 描述 |
---|---|
text | 表格內(nèi)容的摘要。 |