html - 输入类型单选框和复选框上的 Microsoft Edge 浏览器历史记录错误?

标签 html microsoft-edge

Microsoft Edge 会记住选择框的选定选项,但不会记住我选择的单选按钮和选中的复选框。所有其他浏览器会记住所有设置。

edge1.html:

<form action="edge2.html">
 <select name="S">
  <option value="A">A</option>
  <option value="B">B</option>
  <option value="C">C</option>
 <select><br>

 <input type="radio" name="XV" value="1"><br>
 <input type="radio" name="XV" value="2"><br>
 <input type="radio" name="XV" value="3"><br>

 <input type="checkbox" name="C1" value="C1"><br>
 <input type="checkbox" name="C2" value="C2"><br>

 <input type="submit" value="submit">
</form>

edge2.html 可以为空。

如何让 Microsoft Edge 浏览器记住选中的单选按钮和复选框,并在我返回此页面时预先选中它们?

最佳答案

在微软表格上发现了一个 awnser,它说目前不支持

Hello Chris Rebert,

We sincerely appreciate your taking time to provide your feedback. Radio button and checkbox are not supported input types for oninput event on MS Edge. Please see the following list for supported input types.

input type=" text, textarea, password, date, datetime, email, month, number, range, search, tel, time, url, week, color"

Additionally, you can file your suggestion at the uservoice site so others can review your suggestion and vote it up! https://wpdev.uservoice.com/forums/257854-internet-explorer-platform.

Best Regards, The Microsoft Edge Team

另一个: https://connect.microsoft.com/IE/feedback/details/1883692

有一条支持此功能的反馈项目前已超过 100 票: https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/10182111--input-type-checkbox-type-radio-should-fire-in

关于html - 输入类型单选框和复选框上的 Microsoft Edge 浏览器历史记录错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32161067/

相关文章:

selenium - MS Edge 是否有功能齐全的 Selenium WebDriver?

html - 设置为背景的 SVG 线性渐变在 Edge 和 IE 中不起作用

html - Edge 是否应该避免使用 HTML 元标记?

html - CSS 变换旋转在我的代码中不起作用

html - jQuery Mobile ScrollView 仅适用于垂直滚动

javascript - html 按钮和 javascript 代码

javascript - 边缘浏览器与检测文件选择不一致的行为 $ (":file").unbind()

html - 表格单元格内的 <td> 标记在 IE 7 中创建换行符

html - 使用 CSS 将来自一个 TR 的两个 TD 堆叠在一起

session - 如何在Microsoft Edge中还原 session