我在 Consortium 的官方网站 ( https://www.w3.org/TR/html5/tabular-data.html#the-table-element - https://www.w3.org/TR/2014/WD-html51-20140617/tabular-data.html#attr-table-sortable ) 和 Mozilla 开发者网站 ( https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes ) 上都没有找到答案。
感谢您的宝贵时间。
<table sortable>
<tr>
<th sorted> 1 </th>
<th sorted> 2 </th>
</tr>
<tr>
<td> aaa </td>
<td> bbb </td>
</tr>
<tr>
<td> xxx </td>
<td> zzz </td>
</tr>
</table>
最佳答案
sortable
是一个 是 HTML 5.1 中的一个属性,应该早先包含但现在已弃用。所以目前没有浏览器支持它。有关详细信息,请参阅 this
关于html - 哪些网络浏览器支持 HTML5 属性 sortable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41359602/