请老师检查代码
来源:2-17 编程练习
pine小松
2020-03-22 10:35:13
<!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>
用户名:<input type="text">
<br/><br/>
密码:<input type="password">
</body>
</html>
1回答
同学你好,代码是正确的,继续加油,祝学习愉快~