課程
/前端開發(fā)
/HTML/CSS
/十天精通CSS3
如果想用 first-child 把Link1設(shè)置成紅色,其他顏色都不變(包括前面的圓點),style代碼怎么寫的?
2015-05-29
源自:十天精通CSS3 6-6
正在回答
ul > li:first-child a{
?color: red;
}
阿甘2015 提問者
a{
color:inherit
li:first-child:first-child{
color:red;
ul > li ?> a : first-child { ??color: red;?}
這樣也可以??
慕斯卡9626126
ul > li:first-child a,ul>li:first-child{
嗯~~,這個提問大家都在考慮......
舉報
本課程為CSS3入門教程,深刻詳解CSS3知識讓網(wǎng)頁穿上絢麗裝備
1 回答first-child
3 回答first-child不懂
4 回答怎樣把每個圓點都變成紅色呢
5 回答:first-child的真正含義?
1 回答請問 ul > li:first-child{ color: red; } 與 ul > li :first-child{ color: red; } (li與:first-child之間有空格)的差異
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2015-08-03
ul > li:first-child a{
?color: red;
}
2015-12-19
a{
color:inherit
}
2015-10-19
li:first-child:first-child{
color:red;
}
2015-08-07
ul > li ?> a : first-child { ??color: red;?}
這樣也可以??
2015-08-03
ul > li:first-child a,ul>li:first-child{
?color: red;
}
2015-05-29
嗯~~,這個提問大家都在考慮......