課程
/前端開發(fā)
/HTML/CSS
/十天精通CSS3
/*使用偽元素制作導(dǎo)航列表項(xiàng)分隔線*/
有沒有人懂啊,我不太會(huì)啊。
2015-01-04
源自:十天精通CSS3 5-5
正在回答
.nav li:after{ ???????
content:""; ? ? ? ? ?
position:absolute; ????????
top:17px; ? ? ? ?
?right:0px; ? ? ? ? ?
width:1px; ? ? ? ? ?
height:15px; ? ? ? ? ?
background:linear-gradient(to bottom, #f82f87,#A24,#f82f87);?}.nav li:last-child::after{
background:none;} ? ? ?
?.nav a, ?.nav a:hover{ ? ? ? ?
??color:#fff; ? ? ? ?
?text-decoration: none;??????? }
weihms 提問者
舉報(bào)
本課程為CSS3入門教程,深刻詳解CSS3知識(shí)讓網(wǎng)頁穿上絢麗裝備
3 回答使用偽元素制作導(dǎo)航列表項(xiàng)分隔線,right后面的 / 是干嘛用的?
1 回答怎么制作導(dǎo)航分隔線和使用偽元素刪除第一個(gè)和最后一個(gè)分隔線呢?
1 回答制作導(dǎo)航分隔線
2 回答怎么使用偽元素制作分割線啊,沒學(xué)過偽元素啊,
3 回答導(dǎo)航分隔線
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-09-09
.nav li:after{ ???????
content:""; ? ? ? ? ?
position:absolute; ????????
top:17px; ? ? ? ?
?right:0px; ? ? ? ? ?
width:1px; ? ? ? ? ?
height:15px; ? ? ? ? ?
background:linear-gradient(to bottom, #f82f87,#A24,#f82f87);
?}
.nav li:last-child::after{
background:none;} ? ? ?
?.nav a, ?.nav a:hover{ ? ? ? ?
??color:#fff; ? ? ? ?
?text-decoration: none;
??????? }