更改HTML密码字段显示的符号 [英] Changing the symbols shown of a HTML password field
问题描述
有什么方法可以改变星号( *
),或者在某些浏览器中有一个项目符号(•
) ,在HTML中的密码字段中出现?
Is there any way to change the asterisks (*
), or in some browsers a bullet (•
), that appears in password fields in HTML?
推荐答案
不能在标准密码字段中更改密码掩码字符。你可以用文本框来伪造它,但是它会造成一个弱的安全模型,因为你没有从密码文本框中获得保护。作为一个方面说明,改变像这样的项目的行为通常不是一个好主意,因为用户已经习惯了一种形式的遮蔽,并且你将引入一种不同的形式 - 如果没有充分的理由这样做, d避免它。
You can't change the password masking character in the standard password field. You can fake it with a textbox, but it makes for a weak security model because you don't get the protection you do from the password textbox. As a side note, it's generally not a good idea to change the behaviour of items like this because users have become used to one form of masking, and you will be introducing a different one - if there's no good reason to do this, I'd avoid it.
这篇关于更改HTML密码字段显示的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!