我有一个网站,其中包含从 1 到 50 编号的帖子列表。它适用于 Chrome、Firefox 和 IE 10,但不适用于 IE 8 或更低版本....
我有这个:<ol id="post-list" class="lol" start="1">
CSS:
#entry-list > li:before {
border-bottom: 1px solid #D9D9D9;
color: gray;
content: attr(value);
width: 100%;
}
#entry-list {
list-style: none outside none;
margin-top: 0;
word-wrap: break-word;
}
#entry-list .content{margin-bottom:10px}
#entry-list>li{position:relative}
#entry-list>li:not(:last-child){margin-bottom:30px}
问题:IE 8(或更低版本)中没有 border-bottom,也没有以 1 开头的属性/值/列表。我怎样才能让它工作?为什么我的 IE 特定样式表 不响应 #entry-list > li:before
?
最佳答案
看看这个答案是否有帮助,对于 :before 问题:How can I get IE8 to accept a CSS :before tag?
至于“开始”......它应该是有效的。执行此操作时是否使用任何 css 规范化?但是,我们有点需要查看更多代码才能看一看。但是,您确实意识到,您发布的 CSS 会针对 ID 为 entry-list 而不是 post-list 的对象,对吧?
关于css - 如何使用 start 或 value 启动有序列表(IE8)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13323551/