CSS content counters breaks CSS in IE

落花浮王杯 提交于 2019-12-06 11:57:06

Generated content isn't supported in IE<8 (see When can I use...). A brief search didn't return any obvious alternative (a shim etc). Can you just accept that IE6/7 won't see your counters, or perhaps use Chrome Frame?

Having worked through this issue myself, to avoid the IE7 parser error, change:

content: counters(item, ".") ": "; 

to

content: counters(item , ".") ": "; 

Note the whitespace between item and the comma. You can also wrap item in parentheses and it seems to work with all major browsers, though it seems a bit nonstandard.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!