使用CSS / Javascript在文本字段中将文本更改为点 [英] Change text to dots in text field with CSS/Javascript

查看:209
本文介绍了使用CSS / Javascript在文本字段中将文本更改为点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法屏蔽文本字段的输入像密码字段(以显示点而不是文本),而不使类型密码的文本框?我们比CSS喜欢CSS ...

Is there a way to "mask" the input of a text field to act like a password field (to show dots instead of text) without making the text box of type password? We prefer CSS than javascript...

任何想法?

推荐答案

这可能是您要查找的答案:

This may be the answer you were looking for:

-webkit-text-security:disc;

-webkit-text-security: disc;

-moz-text-security:disc;

-moz-text-security: disc;

text-security:disc;

text-security: disc;

这篇关于使用CSS / Javascript在文本字段中将文本更改为点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆