課程
/前端開發
/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);?? ??? ?}??????? /*刪除第一項和最后一項導航分隔線*/????? .nav li:last-child::after{??????????? width: 0px;??????????? height: 0px;?????????? ??? ??? ?}
after之前應該是雙冒號,
舉報
本課程為CSS3入門教程,深刻詳解CSS3知識讓網頁穿上絢麗裝備
2 回答為什么 給a添加為元素后,最后無法通過last-child來去除最后這條填充的線條?
1 回答.post p:last-child和.post :last-child的區別
3 回答有 nth-last-child(n),為何沒有nth-first-child(n) ?
2 回答偽類選擇器(:nth-last-child)不規則的選擇有沒有公式?
1 回答:nth-child(n)應該怎么用
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
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);
?? ??? ?}
??????? /*刪除第一項和最后一項導航分隔線*/
????? .nav li:last-child::after{
??????????? width: 0px;
??????????? height: 0px;
?????????? ?
?? ??? ?}
after之前應該是雙冒號,