【发布时间】:2011-08-04 14:58:52
【问题描述】:
我是初学者,所以如果您知道其他解决方案,请告诉我 ;) 我想让我网站上的菜单看起来像这样:
link / link / link / link / link
菜单在里面,所以这是我所做的:
li:before {
content: "/";
}
li:first-of-type {
color: #FFF; /* I've made first "/" same color as background, so we don't see it */
}
有一些填充标签,所以看起来不错,但我想让它简单易读。
在大多数浏览器中它看起来不错,但当然旧的 Internet Explorer 不支持 :first-of-type 标记。我怎样才能解决这个问题,这样用户就不会只看到第一个斜线?
【问题讨论】:
标签: css internet-explorer css-selectors