不使用type=password类型将输入框内容替换为密文

220 阅读1分钟

因为使用type=password类型会使浏览器提示是否记住密码,可能会导致密码被记住丢失; input { -webkit-text-security: none; } input { -webkit-text-security: circle; } input { -webkit-text-security: square; } input { text-security: disc; /* Default */ }

-webkit-text-security:指定要使用的形状来代替文字的显示。

none:无;

circle:圆圈;

disc:圆形;

square;正方形;

转载blog.csdn.net/gs981600308…