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
查看全文
相关阅读:
05_python_字典
04_python_列表
03_python_基本数据类型
02_python_while循环/格式化输出/逻辑运算
01_python_初始python
vue中v-model的数据双向绑定(重要)
vue中轮播图的实现
侦听器watch 监听单个属性
vue computed监听多个属性
vue中ajax应用
原文地址:https://www.cnblogs.com/wantnewlive/p/9950945.html
最新文章
[map][堆]JZOJ 4754 矩阵
[数学][差分]JZOJ 4744
[Splay]晚练整队
JZOJ 3.2 A组总结
[二维RMQ]luogu 2216 [HAOI2007]理想的正方形
[状压DP]luogu P2157 学校食堂
2019寒假纪中总结
[组合数学][计数DP]JZOJ 4254 集体照
分区-格式化-挂载-使用
vi编辑器的使用
热门文章
文件的打包压缩和解压
目录的增删改查
文件的增删改除
用户和组的增删改查
Linux常用命令的英文单词缩写
Linux基础命令
网络基础知识
08_python_文件操作
07_python_集合深浅拷贝
06_python_小数据池/ is == /编码
Copyright © 2011-2022 走看看