请问为什么我代码里面的手机号码没有设置autocomplete,但还是有on的效果

来源:3-4 编程练习

坚固的鸡蛋

2019-05-23 14:45:50

<html>

<head>

<meta charset="utf-8">

<title>表单新属性</title>

</head>

<body>

<form>

用户名:<input type="text" name="name" autocomplete="on"><!-- 补充代码 -->

<br><br>

邮箱:<input type="email" name="email"><!-- 补充代码 -->

<br><br>

手机号码:<input type="tel" name="tel"><!-- 补充代码 -->

<br><br>

<input type="submit">

</form>

</body>

</html>

http://img.mukewang.com/climg/5ce6419900015dba12930520.jpg

写回答

1回答

好帮手慕码

2019-05-23

同学你好!
因为autocomplete属性是默认开启的哦,所以这里要将autocomplete设置为off

http://img.mukewang.com/climg/5ce67358000107f409180142.jpg

http://img.mukewang.com/climg/5ce67363000100ac05230189.jpg

如果帮助到了你 欢迎采纳 祝学习愉快~

1

0 学习 · 40143 问题

查看课程