Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是一个平面设计,我在表单项本身中保留了“用户名”和“密码”这两个词。困境是我如何让它显示“密码”但是当你键入时显示密码字符?
使用placeholder:
placeholder
<input type="password" placeholder="password">
只要输入字段为空,就会显示占位符文本。