課程
/前端開發(fā)
/HTML/CSS
/十天精通CSS3
請問錯在哪里呢
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);?? ??? ?}??????? /*刪除第一項和最后一項導(dǎo)航分隔線*/????? .nav li:last-child::after{??????????? width: 0px;??????????? height: 0px;?????????? ??? ??? ?}
after之前應(yīng)該是雙冒號,
舉報
本課程為CSS3入門教程,深刻詳解CSS3知識讓網(wǎng)頁穿上絢麗裝備
1 回答.post p:last-child和.post :last-child的區(qū)別
3 回答有 nth-last-child(n),為何沒有nth-first-child(n) ?
2 回答偽類選擇器(:nth-last-child)不規(guī)則的選擇有沒有公式?
1 回答:nth-child(n)應(yīng)該怎么用
4 回答為什么最后一項導(dǎo)航分割線刪除不了呢
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-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);
?? ??? ?}
??????? /*刪除第一項和最后一項導(dǎo)航分隔線*/
????? .nav li:last-child::after{
??????????? width: 0px;
??????????? height: 0px;
?????????? ?
?? ??? ?}
after之前應(yīng)該是雙冒號,