博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
dojo toolkit 的query
阅读量:5954 次
发布时间:2019-06-19

本文共 3039 字,大约阅读时间需要 10 分钟。

  hot3.png

h3 All nodes that are heading level 3
h3:first-child All nodes that are the first children of a <h3> header
#main A node with id="main" 
#main h3 All <h3> nodes that are contained by a node with id="main" 
div#main Only select a node with id="main" if it is a <div>
div#main h3 All nodes that are <h3> contained in a <div> with an id="main"
#main div > h3 All <h3> nodes that are immediate children of a <div> contained within a node that has id="main" 
.foo All nodes with a class="foo"
.foo.bar All nodes that have both foo and bar classes
#main > h3 All <h3> nodes that are immediate children of a node with id="main"
#main > * All immediate children of a node with id="main" 
.foo > * All immediate children of a nodes with a class="foo"
.foo, .bar All nodes with a class="foo" or a class="bar"
[foo] All nodes with an attribute of foo
[foo$=\"thud\"] All nodes with an attribute of foo where the value ends in thud
[foo$=thud] All nodes with an attribute of foo where the value ends in thud
[foo$=\"thudish\"] All nodes with an attribute of foo where the value ends in thudish
#main [foo$=thud] All nodes with an attribute of foo where the value ends in thud that are contained within a node with an id="main" 
#main [ title $= thud ] All nodes with an attribute of title where the value ends in thud that are contained within a node with an id="main" 
#main span[ title $= thud ] All <span> nodes with an attribute of title where the value ends inthud that are contained within a node with an id="main" 
[foo|=\"bar\"] All nodes with an attribute of foo where the value contains bar in a dash seperated list (e.g. foo="baz-bar-qat")
[foo|=\"bar-baz\"] All nodes with an attribute of foo where the value contains bar-baz in a dash seperated list (e.g. foo="qat-bar-baz-qip")
.foo:nth-child(2) The 2nd children of nodes with a style="foo"
> All immediate childen
> * All immediate children
> [qux] All immediate children that have an attribute of qux
.foo + span All nodes that are a <span> that are directly after a node with astyle="foo"
.foo ~ span All nodes that are a <span> that are siblings that follow a node with astyle="foo"
#foo ~ * All nodes that are siblings that follow a node with an id="foo" 
#foo ~ All nodes that are siblings that follow a node with an id="foo" 
#mainspan.foo:not(span:first-child) All nodes that are a <span> with a class="foo" but not a <span> and the first child of a node with an id="foo".
#main span.foo:not(:first-child) All nodes that are a <span> with a class="foo" but not the first child of a node with an id="foo". 
#main > h3:nth-child(odd) All nodes that are <h3> and the odd immediate children of a node with an id="main" 
#main h3:nth-child(odd) All nodes that are <h3> and are odd children contained within a node with an id="main" 
#main h3:nth-child(2n+1) All nodes that are <h3>
#main h3:nth-child(even)  
#main h3:nth-child(2n) Every other nodes that are <h3>
#main2 > :checked  
#main2 >input[type=checkbox]:checked  
#main2 >input[type=radio]:checked  

转载于:https://my.oschina.net/gemron/blog/149132

你可能感兴趣的文章
linux下git自动补全命令
查看>>
Ubuntu14.04LTS更新源
查看>>
Linux报“Unknown HZ value! (288) Assume 100”错误
查看>>
mysql多实例实例化数据库
查看>>
我的友情链接
查看>>
golang xml和json的解析与生成
查看>>
javascript 操作DOM元素样式
查看>>
Android 内存管理 &Memory Leak & OOM 分析
查看>>
【查找算法】基于存储的查找算法(哈希查找)
查看>>
JavaWeb网上图书商城完整项目--day02-10.提交注册表单功能之页面实现
查看>>
记录一下这次web实训的两个网站
查看>>
POJ-1830 开关问题 高斯消元
查看>>
做程序开发的你如果经常用Redis,这些问题肯定会遇到
查看>>
CAS-认证流程
查看>>
006android初级篇之jni数据类型映射
查看>>
Java 集合框架查阅技巧
查看>>
apache配置虚拟主机
查看>>
CollectionView水平和竖直瀑布流的实现
查看>>
前端知识复习一(css)
查看>>
spark集群启动步骤及web ui查看
查看>>