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
查看全文
相关阅读:
R语言高级编程系列之面向对象的类型系统--S3对象
数据挖掘之KNN算法(C#实现)
数据挖掘之决策树ID3算法(C#实现)
C#矩阵运算类库
2020年图机器学习的最新趋势
ios开发笔记-7-bug解决
ios开发笔记-6-ReactiveCocoa
ios开发笔记-5-配置文件
ios开发笔记-4-app打包测试流程
ios开发笔记-3-微信支付
原文地址:https://www.cnblogs.com/wantnewlive/p/9950945.html
最新文章
python处理Excel基础
pip版本过低问题版本升级问题
【python】Excel批量处理身份证号、年龄
大三广工屌丝男实习逆袭
根本停不下来其一!通过打游戏来学习Ruby语言 -- Ruby Warrior -- 初级篇
Windows下构建ASP.NET Core+Code First+Docker
失控中的“甲方”
.net core+Spring Cloud学习之路 二
.net core+Spring Cloud学习之路 一
Linux 的基本命令
热门文章
2017年总结
WPF之ViewModel
C#使用Redis
Windows UWP应用使用本地Sqlite和远程Sql(一)
解决在PowerShell中运行Haskell程序的乱码问题
C++版本的BitConverter
浅谈Miniconda —— 简单实用的Python环境管理工具
Azure Machine Learning 初探 —— 人工智能与云计算的结合
社会网络分析之”组成部分”、小圈子和聚类
社会网络分析之中心性
Copyright © 2011-2022 走看看