问答详情
源自:6-13 CSS3 nth-last-of-type(n)选择器

.wrapper > div:nth-last-of-type(5){ background: orange; }

.wrapper > div:nth-last-of-type(5){

  background: orange;

}


提问者:Minya 2015-01-31 15:41

个回答

  • casparwan
    2015-12-16 16:17:23

    .wrapper下面有好几种类型元素,选择倒数第5个div,用nth-last-of-type(5)