老师,麻烦检查一下
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>动态伪类</title>
<style type="text/css">
input:hover{
border:red solid 1px;
}
input[type="text"]:focus{
background-color:orange;
}
input[type="password"]:focus{
background-color:yellow;
}
</style>
</head>
<body>
<span>用户名:</span><input type="text">
<br>
<br>
<span>密码:</span><input type="password">
</body>
</html>
3
收起
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧