CSSSelector

Example

Description

element.element

div.dropdown

Select all  <div> elements whose class=“dropdown”

element#element

div#new-input

Select all <div> elements whose id =“new-input”

element element

div p

Select all <p> elements who are under <div> element

element>element

div>p

Select all <p> elements whose father is <div> element

[attribute]

div[rowid]

Select all <div> elements who has attribute rowid

[attribute=value]

input[value='OK']

Select all <input> elements whose attribute value is ‘OK’

[attribute*=value]

a[src*=‘abc’]

Select all <a> elements whose attribute src contains  ‘abc’

:nth-child(n)

p:nth-child(2)

Select all <p> elements who is the second child of its  father

eg 1:  div.rtq-grid-row[rowid]  div.rtq-grid-cell:nth-child(5)  a

eg 2: div#fileUpDiv  input[value='OK']

最新文章

  1. 分布式锁1 Java常用技术方案
  2. js动态的把左边列表添加到右边,可上下移动。
  3. shell 中scp密码输入 --expect
  4. 【Go语言】I/O专题
  5. UPC 2170 D Equal Is Not Really Equal (欧拉路径)
  6. 浅谈SQL语句优化经验
  7. 13个mysql数据库的实用SQL小技巧
  8. shiro基础学习(二)&mdash;shiro认证
  9. Java IO 学习总结 学习手册总结
  10. x64_dbg破解64位WinSnap4.5.6图文视频教程
  11. java读取mysql表的注释及字段注释
  12. 阿里字体css代码引入方法
  13. springboot07-security
  14. .11-浅析webpack源码之Storage模块
  15. Python才排第8名!2018增速最快TOP 10编程语言盘点
  16. translclude
  17. Android 自定义倒计时控件CountdownTextView
  18. 七大排序的个人总结(二) 归并排序(Merge
  19. FlexMonkey实战
  20. 20155314 2016-2017-2《Java程序设计》课程总结

热门文章

  1. mac 获得进程信息的方法
  2. 洛谷——P2733 家的范围 Home on the Range
  3. InteliJ 安装PlantUML插件
  4. 7.Java web&mdash;tomcat9部署
  5. Mysql 性能优化20个原则(3)
  6. influxDB的安装和简单使用
  7. UVa 10295 - Hay Points
  8. 【剑指offer】异或去重
  9. gameplay理解
  10. 【转载】细聊分布式ID生成方法