常用的Selectors
[php] * “#ElementId” ID为ElementId
* “.ClassName” class包含ClassName
* “TagName” Dom标签为TagName
* “[AttributeName]” Dom包含属性AttributeName
* “(expr1), (expr2)[, (expr3), ...]” 满足表达式1或表达式2或表达式3…
[/php]
高级的Selectors
[php] * “:empty” 空或’/>’结尾的标签
* “:first-child” 同类同级别第一个Dom
* “:nth-child(odd)” 同类同级别奇数位Dom
* “:nth-child(even)” 同类同级别偶数位Dom
* “(PreExpr)>(NextExpr)” 直接子节点Dom
* “(PreExpr)+(NextExpr)” 同级别紧挨着的Dom
* “(PreExpr)~(NextExpr)” 同级别Dom
* “[AttributeName=(Value)]” Dom包含属性AttributeName且等于Value
* “[AttributeName^=(Value)]” Dom包含属性AttributeName且以Value开头
* “[AttributeName$=(Value)]” Dom包含属性AttributeName且以Value结尾[/php]
表单中的Selectors
[php] * “:checked” 选中状态的表单控件[/php]
[paypal-donation]