-1

我的 CSS 规则:

#menu-right li:last-child a, #menu-left li:last-child a, #menu-bottom li:last-child a, {
    border: none;
}

经过一些更改后停止工作,谁能告诉我为什么?测试网站是[删除]

谢谢!

4

2 回答 2

2

你的规则有错误。之前不应该有,(逗号){

代替:

#menu-bottom li:last-child a, {

和:

#menu-bottom li:last-child a {

另请注意,:last-child选择器不适用于 Internet Explorer 6、7 和 8!

于 2012-09-05T17:34:40.567 回答
1

替换#menu-bottom li:last-child a, {#menu-bottom li:last-child a {。你的规则中有一个逗号,它打破了它。

于 2012-09-05T17:32:57.583 回答