Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 html5 表单验证,它在 chrome 和 firefox 中运行良好,但在 IE 中不行。我更喜欢 HTML5 而不是 jquery,因为它易于使用。是否有任何解决方法可以在 IE 中进行验证。
IE < 10 不兼容 HTML5,IE10+ 或 Edge 是唯一完全支持 HTML5 的。
我想你应该在 jQuery 上呆一会儿。
您是否尝试过 htmlshiv 脚本?它托管在 Google 代码项目中,可以像这样添加到 html 文件的头部:
<!--[if lte IE9]> <script src="location/of/script" type="text/javascript"></script> <![endif]-->
来源:http ://code.google.com/p/html5shiv/