html - 为什么 input 标签设置了 type="password" 后,输入密码仍是文本而不是星号?
黄舟
黄舟 2017-04-17 11:39:18
0
6
886

<input tpye="password" id="form_passwd" name="form_password" class="inp" placeholder="密码">

上面的代码在输入的时候,应该显示「********」,但我本地测试的时候,仍然是直接显示输入文字,为什么会这样?

http://www.w3school.com.cn/tiy/t.asp?f=html5_input_type_password

这个例子里是正确显示的,难道是因为在本地测试吗?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(6)
迷茫

type is not tpye....

迷茫

This is how you should solve the problem:
1. Try your best to check your code to see if there are any low-level errors;

2. Google (you must know this, it is a basic skill...)

3. If you really can’t find the error, ask your friends and colleagues around you (sometimes you can’t see the error yourself for a long time, they may see it at a glance)

4. Go to relevant websites to ask questions, such as stackoverflow, segmentfault, etc.

Only in this way can you improve faster. . .

Ty80

Sexy year! You misspelled the word. . . It’s type, not tye...

阿神

type....

Ty80

It is recommended that you change to an IDE with spell checking, such as PHPStorm, otherwise you will encounter this bug again in the future.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template