課程
/前端開(kāi)發(fā)
/HTML/CSS
/初識(shí)HTML(5)+CSS(3)-升級(jí)版
如題,比如點(diǎn)擊的偽類(lèi)有么?或者其他的?
2016-08-24
源自:初識(shí)HTML(5)+CSS(3)-升級(jí)版 8-9
正在回答
a:link{background:#ff0000}a:visited{background:#00ff00}a:hover{background:#ff00fff}a:active{background:#ffff00}p:first-line{color:#990000}p:first-letter{color:#000099}p:before{content:"(測(cè)試)"}p:after{content:"(測(cè)試)"}:root{background:#000}body *not(h1){background:#666}:empty{background:#000}li:firtst-child{background:#fff000}li:last-child{background:#000fff}li:nth-child(2){background:#ddd}li:nth-child(4n+3){background:#777}li:nth-last-child(2){background:#ddd}li:nth-child(odd){background:#eee}li:nth-child(even){background:#eee}li:nth-last-child(odd){background:#eee}li:nth-last-child(even){background:#eee}li:only-child{background:yellow}input[type="text"]:focus{background:skyblue}input[type="text"]:hover{background:blue}input[type="text"]:active{background:#009900}
幸福的貓小陽(yáng) 提問(wèn)者
http://www.w3school.com.cn/css/css_pseudo_classes.asp 有介紹
http://www.w3school.com.cn/css/css_pseudo_classes.asp
請(qǐng)參考,不知道有沒(méi)有幫到
p
div
a等等,都可以當(dāng)偽類(lèi)使用
a:hover{color:red;}
:nth-child、前綴和后綴
a:link {color:gray;}/*鏈接沒(méi)有被訪問(wèn)時(shí)前景色為灰色*/a:visited{color:yellow;}/*鏈接被訪問(wèn)過(guò)后前景色為黃色*/a:hover{color:green;}/*鼠標(biāo)懸浮在鏈接上時(shí)前景色為綠色*/a:active{color:blue;}/*鼠標(biāo)點(diǎn)中激活鏈接那一下前景色為藍(lán)色*/
舉報(bào)
HTML(5)+CSS(3)基礎(chǔ)教程8小時(shí)帶領(lǐng)大家步步深入學(xué)習(xí)標(biāo)簽用法和意義
2 回答偽類(lèi)選擇器
3 回答關(guān)于偽類(lèi)選擇器
1 回答偽類(lèi)選擇器不明白
6 回答偽類(lèi)選擇符
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-08-24
a:link{background:#ff0000}
a:visited{background:#00ff00}
a:hover{background:#ff00fff}
a:active{background:#ffff00}
p:first-line{color:#990000}
p:first-letter{color:#000099}
p:before{content:"(測(cè)試)"}
p:after{content:"(測(cè)試)"}
:root{background:#000}
body *not(h1){background:#666}
:empty{background:#000}
li:firtst-child{background:#fff000}
li:last-child{background:#000fff}
li:nth-child(2){background:#ddd}
li:nth-child(4n+3){background:#777}
li:nth-last-child(2){background:#ddd}
li:nth-child(odd){background:#eee}
li:nth-child(even){background:#eee}
li:nth-last-child(odd){background:#eee}
li:nth-last-child(even){background:#eee}
li:only-child{background:yellow}
input[type="text"]:focus{background:skyblue}
input[type="text"]:hover{background:blue}
input[type="text"]:active{background:#009900}
2016-08-24
http://www.w3school.com.cn/css/css_pseudo_classes.asp 有介紹
2016-08-24
http://www.w3school.com.cn/css/css_pseudo_classes.asp
請(qǐng)參考,不知道有沒(méi)有幫到
2016-08-24
p
div
a等等,都可以當(dāng)偽類(lèi)使用
2016-08-24
a:hover{color:red;}
2016-08-24
:nth-child、前綴和后綴
2016-08-24
a:link {color:gray;}/*鏈接沒(méi)有被訪問(wèn)時(shí)前景色為灰色*/
a:visited{color:yellow;}/*鏈接被訪問(wèn)過(guò)后前景色為黃色*/
a:hover{color:green;}/*鼠標(biāo)懸浮在鏈接上時(shí)前景色為綠色*/
a:active{color:blue;}/*鼠標(biāo)點(diǎn)中激活鏈接那一下前景色為藍(lán)色*/