:last-child不选择最后一个元素

Yah*_*een 17 css css-selectors

我想从最后一个figure元素中删除背景:

@media (min-width: 50em) {
  #mission #press figure {
    padding-left: 0;
    background: url('/assets/img/splash-green.png?1345829368') no-repeat 50% bottom;
  }
  #mission #press figure:last-child {
    background: none;
  }
}
Run Code Online (Sandbox Code Playgroud)

背景仍然显示出来.我错误定位了吗?

Sci*_*ear 18

我想你可能真的在寻找last-of-type代替的功能last-child.

链接