我正在创建密码字段,我必须使用星号代替密码点。目前,我正在使用此
<input type="text" style="-webkit-text-security: square;" />
但是,当我使用星号代替广场时,它就无法正常工作。是否有任何解决方案。
您需要在输入类型字段中指定password
。这样:
<input type="password" style="-webkit-text-security: square;" />
有关更多信息,请参见此处:https://www.w3schools.com/html/html_form_form_input_types.asp
您可能还想看到:
- 此答案:更改HTML密码字段显示的符号
- 和此答案:用html中的星星(*(替换为Angularjs中的指示