alikitto Asked:2020-09-12 08:29:38 +0000 UTC2020-09-12 08:29:38 +0000 UTC 2020-09-12 08:29:38 +0000 UTC HTML 中的反向编号列表 772 如何制作反向列表?示例: 17. 最后 16. 最后 15. 最后 14. 最后 13. 最后 12. 最后 html 1 个回答 Voted Best Answer greybutton 2020-09-12T08:36:36Z2020-09-12T08:36:36Z 如果你只需要改变数字的顺序,那么这个有一个属性reversed。 <ol reversed> <li>first item</li> <li>second item</li> <li>third item</li> </ol> 如果您需要更改数字和内容的顺序,那么您可以这样做。 ol { display: flex; flex-direction: column-reverse; } <ol> <li>first item</li> <li>second item</li> <li>third item</li> </ol> 更新 #1: 第一个 c 选项reversed在 IE 或 Edge 中不起作用http://caniuse.com/#feat=ol-reversed Firefox 中 的第二个 c 选项flexbox有零而不是数字。
如果你只需要改变数字的顺序,那么这个有一个属性
reversed。如果您需要更改数字和内容的顺序,那么您可以这样做。
更新 #1:
第一个 c 选项
reversed在 IE 或 Edge 中不起作用http://caniuse.com/#feat=ol-reversedFirefox 中 的第二个 c 选项
flexbox有零而不是数字。