Html5表单元素“required”在iPad / iPhone上不起作用 [英] Html5 form element "required" on iPad/iPhone doesn't work

查看:210
本文介绍了Html5表单元素“required”在iPad / iPhone上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPad safari应该符合html5规范,但似乎所需的元素不起作用。任何人都知道为什么,或者有一个体面的解决方法,不需要大量的JavaScript?



我的代码

 < input type = email class = input placeholder =Emailname =emailrequired> 


解决方案

iOS还不支持:何时可以使用:必填


iPad safari is supposed to be html5 compliant, but it seems that the required element doesn't work. Anyone know why, or have a decent workaround that doesn't require a ton of JavaScript?

My code

<input type=email class=input placeholder="Email" name="email" required>

解决方案

It's not supported in iOS yet: when can I use: required.

这篇关于Html5表单元素“required”在iPad / iPhone上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆