zoukankan
html css js c++ java
选择器
#id 用于搜索的,通过元素的 id 属性中给定的值
element 一个用于搜索的元素。指向 DOM 节点的标签名。
.class 一个用以搜索的类。一个元素可以有多个类,只要有一个符合就能被匹配到。
* 找到每一个元素
selector1,selector2,selectorN 你可以指定任意多个选择器,并将匹配到的元素合并到一个结果内。
层级
ancestor descendant
parent > child
prev + next
prev ~ siblings
基本
:first
:not(selector)
:even
:odd
:eq(index)
:gt(index)
:lang
1.9+
:last
:lt(index)
:header
:animated
:focus
:root
1.9+
:target
1.9+
内容
:contains(text)
:empty
:has(selector)
:parent
可见性
:hidden
:visible
属性
[attribute]
[attribute=value]
[attribute!=value]
[attribute^=value]
[attribute$=value]
[attribute*=value]
[attrSel1][attrSel2][attrSelN]
子元素
:first-child
:first-of-type
1.9+
:last-child
:last-of-type
1.9+
:nth-child
:nth-last-child()
1.9+
:nth-last-of-type()
1.9+
:nth-of-type()
1.9+
:only-child
:only-of-type
1.9+
表单
:input
:text
:password
:radio
:checkbox
:submit
:image
:reset
:button
:file
:hidden
表单对象属性
:enabled
:disabled
:checked
:selected
查看全文
相关阅读:
日报10.11
日报10.9
日报10.8
日报10.7
换马甲啦
CSP2019知识点整理
字符logo存档
QHDYZ模拟赛20191027 提前透题
数竞大佬jhc的三角函数复习题
IO流
原文地址:https://www.cnblogs.com/wantnewlive/p/9950945.html
最新文章
期中考试前准备--数据库修改代码
期中考试前准备--数据库插入代码
eclipse快捷键
期中考试前准备--数据库删除代码
11.25
11.24
11.23
11.22
11.21
11.20
热门文章
11.19
11.18
11.17
11.16
日报10.16
日报10.15
日报10.14
日报10.13
日报10.12
每周总结-4
Copyright © 2011-2022 走看看