【问题标题】:HTML Save Password IE11HTML 保存密码 IE11
【发布时间】:2016-11-30 16:58:55
【问题描述】:

我有一个网页,在 Chrome 和 Firefox 中,浏览器要求我保存登录信息。但是 IE11 并没有要求保存登录信息。 有人可以帮忙吗?谢谢!

用户名输入:

<input id="mui-id-2" style="font: inherit; padding: 0px; border: currentColor; border-image: none; width: 100%; height: 100%; color: rgba(0, 0, 0, 0.87); margin-top: 14px; position: relative; box-sizing: border-box; font-size-adjust: inherit; font-stretch: inherit; background-color: transparent; tap-highlight-color: rgba(0, 0, 0, 0);" type="text" data-reactid=".0.0.0.1.0.5.1.0.$=10.0.1.2">

输入密码:

<input id="mui-id-3" style="font: inherit; padding: 0px; border: currentColor; border-image: none; width: 100%; height: 100%; color: rgba(0, 0, 0, 0.87); margin-top: 14px; position: relative; box-sizing: border-box; font-size-adjust: inherit; font-stretch: inherit; background-color: transparent; tap-highlight-color: rgba(0, 0, 0, 0);" type="password" data-reactid=".0.0.0.1.0.5.1.0.$=10.0.3.2">

【问题讨论】:

  • 你真的应该使用样式表。
  • 这是浏览器的默认行为,您可以通过编辑设置进行配置
  • 使用除内联样式外的样式表。并为您的输入值命名。我怀疑它没有名字就可以工作。
  • 您检查浏览器的设置了吗?先在其他网站上试试。

标签: html internet-explorer-11


【解决方案1】:

尝试在您的输入中添加名称属性。

<input type="text" name="username" />
<input type="password" name="password" />

【讨论】:

  • 为什么 OP 应该这样做?这实际上与 OP 问题无关
  • 这样浏览器就可以识别为登录了。
  • 再读一遍浏览器要求我保存登录信息所以它已经保存了
  • 是的,Firefox 和 Chrome 可以。不同的浏览器以不同的方式工作。有些人只需要type="password" 就可以理解这是一个登录。
  • 您是如何发送请求的?您是否通过提交发布它?
猜你喜欢
  • 1970-01-01
  • 2013-03-04
  • 2014-12-31
  • 2013-12-20
  • 1970-01-01
  • 2015-03-27
  • 1970-01-01
  • 2016-02-21
  • 2015-03-04
相关资源
最近更新 更多