【问题标题】:is it possible to force input type="password" to be treated as type="text"?是否可以强制输入 type="password" 被视为 type="text"?
【发布时间】:2018-10-31 23:36:04
【问题描述】:

当我访问带有密码字段的网页时,我想让密码字段可见。我正在查看其他人的页面,因此我不能(例如)更改输入字段的 type= 属性,也不能将 javascript 插入页面(做同样的事情)。

我能否以某种方式覆盖 -webkit-text-security 属性以强制显示该字段?

【问题讨论】:

    标签: security passwords


    【解决方案1】:

    如果你在想我认为你是什么......

    只需右键单击密码字段并选择检查元素。将input type="password" 更改为input type="text",然后您在密码字段中输入的任何内容(显示为隐藏字符)都会显示为纯文本。

    【讨论】:

    • 完美。谢谢。
    猜你喜欢
    • 2013-07-20
    • 2013-06-28
    • 2013-06-13
    • 2013-06-05
    • 2010-12-17
    • 2013-06-03
    • 1970-01-01
    • 2013-03-20
    • 2012-06-10
    相关资源
    最近更新 更多