CSS3新增选择器

时间:2021-03-09 13:18:32   收藏:0   阅读:0

CSS3新增的伪类选择器

:first-child 表示第一个子元素是...
:last-child
:nth-child(numberloddleven/倍数)

:first-of-type 表示第一个子元素
:last-of-type
:nth-of-type (numberloddleven/倍数)

:empty空的子元素 子元素不能包含任何内容
:not(选择器) 表示否定某一个

表单:
:focus 获取焦点时的样式
:checked 被选中时的样式

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!