本文介绍了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上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 17:00