Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css] 第219天 你有使用:valid和:invalid来校验表单吗? #1546

Open
haizhilin2013 opened this issue Nov 20, 2019 · 3 comments
Open
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第219天 你有使用:valid和:invalid来校验表单吗?

我也要出题

@haizhilin2013 haizhilin2013 added the css css label Nov 20, 2019
@simplefeel
Copy link

no!!!!!!!!

@forever-z-133
Copy link

很不好控制,拿必填来举例,:invalid 标红。
初始时就红的,那 :focus:invalid 吧,blur 就不标了;
刚 focus 就标红,不见得是设计想要的,:placeholder-shown 能解决一点。
后来还是加上了一些 js,因为需求变化得比解决它的坑要快。

@liu12fei08fei
Copy link

简单用过,发现实际操作不是特别好用,坑还多,就放弃使用了;未来某个阶段应该可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css css
Projects
None yet
Development

No branches or pull requests

4 participants