#表单相关
###:input
可以选择,,和
###:text
匹配所有的单行文本框,和input[type = ‘text’]一样
###其他input的type
:password :radio :checkbox :image :reset :button :file
- 这样就可以相对精确的选中input下的元素了
#表单状态相关
###:enable和:disable
:enable匹配所有可用元素;:disable匹配所有不可用元素
###:checked
匹配所有选中的被选中元素(复选框、单选框等,select中的option)
###:selected
匹配所有选中的option元素
- 虽然checked也可以选中select,但是使用selected能增强代码可读性