我的 CSS 规则:
#menu-right li:last-child a, #menu-left li:last-child a, #menu-bottom li:last-child a, {
border: none;
}
一些更改后停止工作,谁能告诉我为什么?测试网站已[删除]
谢谢!
最佳答案
您的规则有误。 {
:
,
(逗号)
替换:
#menu-bottom li:last-child a, {
与:
#menu-bottom li:last-child a {
另请注意,:last-child
选择器不适用于 Internet Explorer 6、7 和 8!
关于css - 为什么这个li :last-child not work?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12286790/