最佳答案
我正在做一个非常先进的网站。我的问题是: 除了 :first-child
和 :last-child
,是否可以选择其他所有的孩子?我知道有一个 :not()
选择器,但它不与一个以上的不在括号内的工作。这就是我所拥有的:
#navigation ul li:not(:first-child, :last-child) {
background: url(images/UISegmentBarButtonmiddle@2x.png);
background-size: contain;
}