老师请检查下代码
来源:2-17 编程练习
慕瓜6889430
2019-11-28 11:24:55
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>动态伪类</title>
<style type="text/css">
/*此处写代码*/
input:hover{border-color:red;}
input[type="text"]:focus{background:orange;}
input[type="password"]:focus{background:yellow;}
</style>
</head>
<body>
<!-- 此处写代码 -->
<div>用户名:<input type="text"/></div>
<br>
<div>密码:<input type="password"/></div>
</body>
</html>
1回答
好帮手慕粉
2019-11-28
同学你好,代码是正确的。继续加油,祝学习愉快~