请老师过目
来源:2-8 编程练习
qq_鸭绿桥第一帅哥_0
2019-03-13 14:24:24
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>a</title>
<style type="text/css">
input:-webkit-autofill{
-webkit-box-shadow:0 0 0 1000px white inset;
}
</style>
</head>
<body>
<form autocomplete="off" action="" method="post">
<input type="text" name="a">
<input type="submit" name="b">
</form>
</body>
</html>1回答
同学你好,建议autocomplete的值设置为on,这样能够查看改变表单填充的背景效果哦。
参考下图:

试一试哦,如果帮助到了你,欢迎采纳。
祝学习愉快!