gpt4 book ai didi

c# - 在密码字段中显示星号而不是无值

转载 作者:太空狗 更新时间:2023-10-30 00:53:28 26 4
gpt4 key购买 nike

我想在密码字段中显示星号而不是无值。当我将字段设置为 type=text 时,我可以看到纯文本。当我将类型设置为密码时,我得到空白字段。有没有办法将值显示为星号?

  <input type="text" id="txtPwd" runat="server" />           

这是我的领域。提前致谢,拉齐亚莱

最佳答案

您可以使用 HTML5 placeholder 属性:

 <input type="password" placeholder="●●●●●●●●●">

示例:http://jsfiddle.net/AJ2kn/

关于c# - 在密码字段中显示星号而不是无值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16309647/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com