【问题标题】:Html input control for passwords - not showing no of characters typed or showing spaces instead of dots用于密码的 Html 输入控件 - 不显示输入的字符或显示空格而不是点
【发布时间】:2010-10-30 17:21:35
【问题描述】:

可以在 html input type="password" 中使用密码元素,在这种模式下,人们不会将字符类型显示为星号/圆圈,而是显示为空格/无,因此没有人会知道密码的长度。

【问题讨论】:

  • 这会让很多不懂计算机的用户感到困惑。 (人们已经抱怨“ssh”或 PuTTY“不接受密码”。)
  • 我知道这可能会让人感到困惑,但这是一个不可动摇的要求,所以我想需要进行一些培训。

标签: asp.net html security input passwords


【解决方案1】:

理论上:

some-selector {
  background-color: white;
  color: white;
}

如果您不关心不支持属性选择器的浏览器(即旧版本的 IE),选择器可以是 input[type=password]

【讨论】:

    【解决方案2】:

    能否让文字颜色与背景颜色相同? (自己没试过……)

    【讨论】:

      猜你喜欢
      • 2013-09-05
      • 2011-06-26
      • 1970-01-01
      • 1970-01-01
      • 2020-05-29
      • 1970-01-01
      • 2014-12-28
      • 2010-12-09
      • 2021-11-28
      相关资源
      最近更新 更多