想问类似这样的伪类选择器还有那些?
如题,比如点击的伪类有么?或者其他的?
如题,比如点击的伪类有么?或者其他的?
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:"(测试)"}
p:after{content:"(测试)"}
: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}
举报