HTML 表单验证弹出窗口在 Chrome 和 IE 中不可读

标签 html google-chrome validation internet-explorer

当带有 HTML 验证的输入位于浏览器窗口底部时,HTML 表单验证弹出窗口将出现在浏览器窗口的“外部”,即无法阅读。

弹出窗口在 Firefox 中运行良好,但在 Chromium 51.0 或 IE10 或 IE11 中无法读取。

这仅仅是浏览器错误,还是我有可能影响它?

这是当我输入有效电子邮件地址时导致问题的 HTML:

<form>
  When you type something into the field below that is NOT an email address and click "Submit" the HTML5 validation popup will appear outside the window in Chrome.
  <div class="right-bottom">
    <input type="email" placeholder="email" required="true" />
    <input type="submit" value="Submit" />
  </div>
</form>

我创建了一个 fiddle 来显示问题:https://jsfiddle.net/gy8vhLz9/2/

最佳答案

我的结论是 HTML5 验证还不成熟。我们应该使用其他东西。

Here是一个 Chromium 问题,其中指出我们无法设置错误消息的样式。

关于HTML 表单验证弹出窗口在 Chrome 和 IE 中不可读,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38855020/

相关文章:

Javascript 按降序键对数组进行排序 Google Chrome

c# - 带逗号的百分比正则表达式

c# - 如何基于 DropDownList 选择验证具有 RegularExpression 的 TextBox?

php - 要求字段单独存在的条件验证器

javascript - Selenium,如何按ENTER键,没有元素

google-chrome - 修复有关 IIS8.5 和 SQL Server 2012 中过时加密的 Chrome 通知

Javascript 和 jquery 停止事件

Android Webview 性能差异

html - 使用 float 和 margin-left 创建 html 布局的问题

php - 如何将 mpg 嵌入我的网页