有没有办法禁用屏蔽?
我尝试了input[type='password'][name='TxtPassword]{ -webkit-text-security: none !important;}
但这不起作用。
提前致谢。
答案 0 :(得分:0)
您可以使用JavaScript更改类型。将类型设置为text
将显示文本。
document.querySelector("button").addEventListener("click", function () {
var textbox = document.querySelector("input");
if (textbox.type == "password") {
textbox.type = "text";
} else {
textbox.type = "password";
}
});
<input type="password" value="password" />
<button>Toggle type</button>