分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 软件开发

css新增伪类

发布时间:2023-09-06 01:44责任编辑:蔡小小关键词:暂无标签

css3新增伪类

:first-of-type p:first-of-type 选择属于其父元素首 <p> 元素每 <p> 元素
:last-of-type ???p:last-of-type ???选择属于其父元素 <p> 元素每 <p> 元素
:only-of-type ???p:only-of-type ???选择属于其父元素唯 <p> 元素每 <p> 元素
:only-child ???p:only-child ???选择属于其父元素唯元素每 <p> 元素
:nth-child(n) ???p:nth-child(2) ???选择属于其父元素第二元素每 <p> 元素
:nth-last-child(n) ???p:nth-last-child(2) ???同元素始计数
:nth-of-type(n) ???p:nth-of-type(2) ???选择属于其父元素第二 <p> 元素每 <p> 元素 ??
:nth-last-of-type(n) ???p:nth-last-of-type(2) ???同元素始计数 ????
:last-child ???p:last-child ???选择属于其父元素元素每 <p> 元素 ?
:root ???:root ???选择文档根元素 ??
:empty ???p:empty ???选择没元素每 <p> 元素(包括文本节点) ?
:target ???#news:target ???选择前 #news 元素
:enabled ???input:enabled ???选择每启用 <input> 元素 ?
:disabled ???input:disabled ???选择每禁用 <input> 元素 ?
:checked ???input:checked ???选择每选 <input> 元素 ?
:not(selector) ???:not(p) ???选择非 <p> 元素每元素
::selection ???::selection ???选择用户选取元素部

css新增伪类

原文地址:https://www.cnblogs.com/lucky-ball/p/8510929.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved