2-8编程练习,老师帮我看看问题在哪

来源:2-8 编程练习

慕莱坞9309525

2018-11-03 18:03:46

<!DOCTYPE html>

<html>

    <head>

<meta charset="UTF-8">

<title></title>

        <style>

/*在此处填写代码*/

input:-webkit-autofill {

           -webkit-box-shadow: 0 0 0px 1000px white inset;

           border: 1px solid #CCC!important;

        }

   </style>

</head>

<body>

<!--在此处填写代码-->

<form autocomplete="on">

<input type="text" placeholder="请输入名字" />

   <input type="password" placeholder="请输入密码" />

   <input type="submit" name="提交" />

</form>

</body>

</html>


写回答

1回答

好帮手慕星星

2018-11-04

在input标签中缺少name属性,如下:;

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

属性值可以自己写。

另外autocomplete属性是input标签的,不是form标签的。

自己测试下。祝学习愉快!

0

0 学习 · 5012 问题

查看课程