老师请检查,为什么密码输入时可以看见
来源:3-16 编程练习
妄4
2019-08-05 20:20:41
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>表单新属性placeholder</title> </head> <body> <!-- 此处写代码 --> <form> 用户名:<input type="text" name="text" placeholder="请输入您的用户名"><br> 密码:<input type="passwd" name="passwd" autocomplete="off" placeholder="请输入您的密码"><br> 查询信息:<input type="text" name="text" placeholder="请输入您需要搜索的内容"><br> <input type="submit" name="提交" value="提交"> </form> </body> </html>
2回答
好帮手慕慕子
2019-08-06
同学你好, “章鱼brother”这位同学说的很对哦

另,根据练习要求,代码中的查询信息需要是搜索类型的输入框哦 , 建议修改:type属性值设置为search

如果帮助到了你, 欢迎采纳!
祝学习愉快~~~~
章鱼brother
2019-08-05
密码:<input type="passwd" name="passwd" autocomplete="off" placeholder="请输入您的密码">
密码类型的type值为:password,而不是passwd
相似问题