我想在密码字段中显示星号而不是无值。 当我将字段设置为 type=text 时,我可以看到纯文本。当我将类型设置为密码时,我得到空白字段。 有没有办法将值显示为星号?
<input type="text" id="txtPwd" runat="server" />
这是我的领域。 提前致谢,拉齐亚莱
最佳答案
您可以使用 HTML5 placeholder
属性:
<input type="password" placeholder="●●●●●●●●●">
关于c# - 在密码字段中显示星号而不是无值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16309647/