【发布时间】:2013-03-06 16:15:00
【问题描述】:
我们的新网站上的列表菜单有问题。
我正在使用 li:before 来显示 |在菜单中的所有项目之前。使用以下 CSS:
#menu li:first-child:before {
content:"";
}
#menu li:before {
content: " | ";
}
由于某些奇怪的原因,这在我之前做过的网站上运行良好:http://www.oneillsbedandbreakfast.com 但它不适用于我目前正在开发的网站:http://www.scoridcottage.com/newdesign
有什么想法吗?
【问题讨论】:
-
你能在 jsfiddle 中重现这个问题吗?它可以在 Fx、Chrome 和 IE9 中使用吗?
标签: html css html-lists pseudo-element