我在使用Opera和Safari进行HTML5验证时遇到问题。使用Opera和Safari进行HTML5验证
在Opera中,消息气泡没有显示任何文本,在safari中,当我按下提交按钮时,验证不会发生。在IE,Mozilla或Chrome中,验证工作得很好。谁能说出为什么会发生这种情况?
我在表单中的输入具有html5标准验证和必需的属性,就是这样。
我试图在网络上搜索这个主题,但没有设法找到它。
请帮帮我。
感谢
<form class="sign-in-form" action="" method="post">
<li>
<label>
<span>Username</span>
<input placeholder="Please enter your username" name="username" type="text" tabindex="1" title="It must contain the username that you have chosen at registration" required autofocus>
</label>
</li>
<li>
<label>
<span>Password</span>
<input placeholder="Please enter your password" name="password" type="password" tabindex="2" title="It must contain the password that you have chosen at registration" required>
</label>
</li>
<li>
<button name="sign-in-btn" type="submit" id="sign-in-submit">Sign In</button>
</li>
</form>
你能告诉我们一些代码,以便我们可以试着弄清楚发生了什么吗?否则就不会有太多的事情要做。 – Turnerj 2013-04-27 12:59:37
我已编辑帖子以向您展示代码。我真的不知道什么是错的 – 2013-04-27 13:31:36