Jekyll:逆序列表在 Internet Explorer 中不起作用
Jekyll: Reverse order lists not working in Internet Explorer
我使用 Jekyll 写了一篇博客 post (here),其中我使用了倒序列表。所以我想要的是:
10. Bla bla
9. Bla bla
8. Bla bla
...
1. Bla bla
我在 Jekyll 中使用:
---
layout: post
title: 'Title'
---
{: reversed="reversed"}
10. Bla bla
9. Bla bla
...
1. Bla bla
此外,在我的 _config.yml
中,我选择了 Kramdown:
# Choose Markdown version
markdown: kramdown
我在 Github 页面上托管该页面。
这在 Chrome、Safari 和 Firefox 上正确显示。但是在 Internet Explorer (Version: 11.0.9600.18837, Update Versions: 11.0.48)
上是错误的:
有人知道发生了什么事吗?或者我可以将项目符号项硬编码为“10”、“9”……吗?
发生的事情总是发生的事情:Internet Explorer 不支持它。
The reversed property is supported in all major browsers, except
Internet Explorer.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol#Browser_compatibility
我将上面的措辞改写为:所有主要的、严肃的、标准友好的浏览器都支持颠倒的 属性。
对于其他搜索引擎,也可以考虑将 bibliography_list_attributes
放在 markdown 页面的 header 处:
---
title: My list
bibliography_list_attributes:
reversed: "reversed"
---
我使用 Jekyll 写了一篇博客 post (here),其中我使用了倒序列表。所以我想要的是:
10. Bla bla
9. Bla bla
8. Bla bla
...
1. Bla bla
我在 Jekyll 中使用:
---
layout: post
title: 'Title'
---
{: reversed="reversed"}
10. Bla bla
9. Bla bla
...
1. Bla bla
此外,在我的 _config.yml
中,我选择了 Kramdown:
# Choose Markdown version
markdown: kramdown
我在 Github 页面上托管该页面。
这在 Chrome、Safari 和 Firefox 上正确显示。但是在 Internet Explorer (Version: 11.0.9600.18837, Update Versions: 11.0.48)
上是错误的:
有人知道发生了什么事吗?或者我可以将项目符号项硬编码为“10”、“9”……吗?
发生的事情总是发生的事情:Internet Explorer 不支持它。
The reversed property is supported in all major browsers, except Internet Explorer.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol#Browser_compatibility
我将上面的措辞改写为:所有主要的、严肃的、标准友好的浏览器都支持颠倒的 属性。
对于其他搜索引擎,也可以考虑将 bibliography_list_attributes
放在 markdown 页面的 header 处:
---
title: My list
bibliography_list_attributes:
reversed: "reversed"
---