第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

想問(wèn)類(lèi)似這樣的偽類(lèi)選擇器還有那些?

如題,比如點(diǎn)擊的偽類(lèi)有么?或者其他的?

正在回答

7 回答

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}

2 回復(fù) 有任何疑惑可以回復(fù)我~
#1

幸福的貓小陽(yáng) 提問(wèn)者

感謝耐心的寫(xiě)代碼,注明都是什么就完美了
2016-08-26 回復(fù) 有任何疑惑可以回復(fù)我~

http://www.w3school.com.cn/css/css_pseudo_classes.asp

請(qǐng)參考,不知道有沒(méi)有幫到

0 回復(fù) 有任何疑惑可以回復(fù)我~

p

div

a等等,都可以當(dāng)偽類(lèi)使用

0 回復(fù) 有任何疑惑可以回復(fù)我~

a:hover{color:red;}

0 回復(fù) 有任何疑惑可以回復(fù)我~

:nth-child、前綴和后綴

0 回復(fù) 有任何疑惑可以回復(fù)我~

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)色*/

2 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
初識(shí)HTML(5)+CSS(3)-升級(jí)版
  • 參與學(xué)習(xí)       1228730    人
  • 解答問(wèn)題       19080    個(gè)

HTML(5)+CSS(3)基礎(chǔ)教程8小時(shí)帶領(lǐng)大家步步深入學(xué)習(xí)標(biāo)簽用法和意義

進(jìn)入課程

想問(wèn)類(lèi)似這樣的偽類(lèi)選擇器還有那些?

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)