3-30作业审批
来源:3-30 编程练习
web前端高级开发工程师
2021-08-04 14:30:44
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>动态伪类</title>
<style type="text/css">
input:hover{border: 1px solid rgb(248, 3, 3);}
.box1 input:focus{background-color: orange;}
.box2 input:focus{background-color: yellow;}
</style>
</head>
<body>
<p class="box1">
用户名:<input type="text" value="">
</p>
<p class="box2">
密码:<input type="password" value="">
</p>
</body>
</html>
相关截图:
1回答
同学你好,代码正确,很棒,祝学习愉快!