Change text to dots in text field with CSS/Javascript

前端 未结 3 591
别那么骄傲
别那么骄傲 2021-01-21 00:26

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 th

3条回答
  •  猫巷女王i
    2021-01-21 00:51

    This may be the answer you were looking for:

    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
    

提交回复
热议问题