下面的代码在 IE 8 中不工作,除了这个浏览器它在所有浏览器中工作。谁能帮我解决这个问题?
CSS
ul.hyphen-list {
list-style-type: none;
margin-left: 1.5em;
padding-left: 1em;
text-indent: -0.85em;
}
ul.hyphen-list li:before {
content: "- ";
}
HTML
<ul class="hyphen-list">
<li>This is line 1<br/>part 2</li>
<li>This is line 2</li>
</ul>
最佳答案
ul.hyphen-list {
list-style: none;
}
在 IE8 的浏览器堆栈上测试;工作正常 - http://jsfiddle.net/9RGeB/7/
http://jsfiddle.net/9RGeB/7/show/
记住:IE 7 不支持 :before
关于html - HTML 页面中的连字符列表在 IE 8 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22095750/