【发布时间】:2014-01-04 04:36:53
【问题描述】:
我是 HTML5 表单的新手,让它们在旧版浏览器中工作。我正在尝试使用 Webshims Lib polyfill 让我的简单 HTML5 演示表单在 IE8 中验证,但它似乎无法验证。据我所知,我已经按照Webshims Lib website 的指示进行操作。我究竟做错了什么?这是我的代码(如下)和live link
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="js/modernizr-custom.js"></script>
<script src="js/polyfiller.js"></script>
<style>
ul {list-style-type: none; margin-top: 100px;}
li {padding-bottom: 10px;}
</style>
</head>
<body>
<form id="myform" action="process.php" method="post">
<ul>
<li><label>Name</label>
<input type="text" name="name"></li>
<li><label>Email</label>
<input type="email" name="email" required></li>
<li><label>Numbers</label>
<input type="number" name="numbers"></li>
<li><label>Message</label>
<textarea name="message" placeholder="Type Here" required></textarea></li>
<li><input id="submit" name="submit" type="submit" value="Submit"></li>
</ul>
</form>
<script>
$.webshims.polyfill();
</script>
</body>
</html>
【问题讨论】:
标签: html forms internet-explorer-8 webshim