課程
/前端開發
/HTML/CSS
/十天精通CSS3
.wrapper > div:nth-last-of-type(5){
? background: orange;
}
2015-01-31
源自:十天精通CSS3 6-13
正在回答
.wrapper下面有好幾種類型元素,選擇倒數第5個div,用nth-last-of-type(5)
舉報
本課程為CSS3入門教程,深刻詳解CSS3知識讓網頁穿上絢麗裝備
2 回答為何改為.wrapper > div:last-child{ background: orange; }不行?
6 回答.wrapper>p:first-of-type和.wrapper>p:first-child 有什么區別嗎
1 回答.wrapper>div:后面沒填為什么會影響到.wrapper>p:nth-of-type(2n)
3 回答background-image:linear-gradient( to top left,red, orange);哪里出錯啦
2 回答only-of-type這個有用?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-12-16
.wrapper下面有好幾種類型元素,選擇倒數第5個div,用nth-last-of-type(5)