ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
| 表达式 | 说明 | | --- | --- | | div#content > span | id为content的div下面的第一个span子元素 | | ul + p | ul后面的第一个p标签 | | ul ~ p | ul相邻的所有p标签 | | a[title] | 所有有title属性的a标签 | | a[href="http://chenyy.xin"] | 所有href属性为chenyy.xin值得a标签 | | a[href*="chenyy"] | 所有href属性包含chenyy的a标签 | | a[href^="http"] | 所有href属性值以http开头的a标签 | | a[href$=".jpg"] | 所有href属性值以.jpg结尾的a标签 | | input[type=radio]:checked | 选择选中的radio标签 | | div:not(#container) | 选取所有id非container的div元素 | | li:nth-child(3) | 选取第三个li | | tr:nth-child(2n) | 第偶数个tr |