Appearance
:invalid 伪类适用于内容与指定类型不匹配的表单字段。例如,对于 type =“number”,应输入数字,而不是字母;对于 type =“email”,应输入正确的电子邮件地址。
input:invalid { ...; }