css pseudo-class (伪类)checked unchecked

checked

input[type="checkbox"]:checked
{/* styles */}
input[type="checkbox"]:not(:checked)
{/* styles */}


:unchecked does not exist in the level 3 Selectors or UI specs, nor has it appeared in level 4 of Selectors yet. The Selectors specs wouldn't bother to suggest using :not(:checked) were there such a pseudo-class.

http://stackoverflow.com/questions/8846075/css3-unchecked-pseudo-class
:unchecked
:not(:checked)

posted on   Sure_Yi  阅读(506)  评论(0编辑  收藏  举报

< 2025年1月 >
29 30 31 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示