課程
/前端開發
/HTML/CSS
/十天精通CSS3
幾個結構性偽類選擇器疊加怎么寫?
2015-05-14
源自:十天精通CSS3 6-3
正在回答
div:not([id="footer"]):first-child{
? background: orange;
}
試了這個有效果
舉報
本課程為CSS3入門教程,深刻詳解CSS3知識讓網頁穿上絢麗裝備
2 回答ol > li:first-child{ color: red; }與 li:first-child{ color: red; }有區別嗎?
2 回答如何實現前三個child變色,只能寫3次嗎?
1 回答nth-child()
1 回答first-child
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-07-13
div:not([id="footer"]):first-child{
? background: orange;
}
試了這個有效果