我正在制作一个非常先进的网站.我的问题:除了:first-child
和:last-child
之外,有可能 Select 所有其他子元素吗?我知道有一个:not()
Select 器,但它不适用于多个不在括号中的 Select 器.这就是我所拥有的:
#navigation ul li:not(:first-child, :last-child) {
background: url(images/UISegmentBarButtonmiddle@2x.png);
background-size: contain;
}