我在聯盟的官方網站(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)上找到答案。哪些網頁瀏覽器支持HTML5屬性排序?
謝謝你的時間。
<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是瀏覽器識別的一個屬性,用於排序 - 它很可能是由插件添加的,或者是標記中的插件所要求的。你從哪裏瞭解到這個屬性? – Terry
https://www.w3.org/TR/2014/WD-html51-20140617/tabular-data.html#attr-table-sortable – Juri
'sortable'似乎只在舊的工作草案中提及。這在最新的草案中沒有提到。考慮一下,它根本沒有在某個地方進行剪輯。 – deceze