課程
/前端開(kāi)發(fā)
/HTML/CSS
/十天精通CSS3
請(qǐng)問(wèn)錯(cuò)在哪里呢
2015-08-14
源自:十天精通CSS3 5-5
正在回答
使用 display:none 就隱藏了
??? .nav li::after{??????????? content:"";??????????? position:absolute;????????? right:0px;??????????? top:10px;??????????? height:30px;??????????? width:1px;??????????? background:linear-gradient(to bottom,#aaa,#fff,#aaa);?? ??? ?}??????? /*刪除第一項(xiàng)和最后一項(xiàng)導(dǎo)航分隔線*/????? .nav li:last-child::after{??????????? width: 0px;??????????? height: 0px;?????????? ??? ??? ?}
after之前應(yīng)該是雙冒號(hào),
舉報(bào)
本課程為CSS3入門教程,深刻詳解CSS3知識(shí)讓網(wǎng)頁(yè)穿上絢麗裝備
2 回答為什么 給a添加為元素后,最后無(wú)法通過(guò)last-child來(lái)去除最后這條填充的線條?
1 回答.post p:last-child和.post :last-child的區(qū)別
3 回答有 nth-last-child(n),為何沒(méi)有nth-first-child(n) ?
2 回答偽類選擇器(:nth-last-child)不規(guī)則的選擇有沒(méi)有公式?
1 回答:nth-child(n)應(yīng)該怎么用
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2015-10-22
使用 display:none 就隱藏了
2015-08-17
??? .nav li::after{
??????????? content:"";
??????????? position:absolute;
????????? right:0px;
??????????? top:10px;
??????????? height:30px;
??????????? width:1px;
??????????? background:linear-gradient(to bottom,#aaa,#fff,#aaa);
?? ??? ?}
??????? /*刪除第一項(xiàng)和最后一項(xiàng)導(dǎo)航分隔線*/
????? .nav li:last-child::after{
??????????? width: 0px;
??????????? height: 0px;
?????????? ?
?? ??? ?}
after之前應(yīng)該是雙冒號(hào),