请老师帮忙检查代码
来源:3-30 编程练习
廖可爱bongbong
2021-04-27 11:35:10
<!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>
<!-- 此处写代码 -->
<p>用户名:
<input type="text">
</p>
<p>密码:
<input type="password">
</p>
</body>
</html>
1回答
好帮手慕久久
2021-04-27
同学你好,代码正确,很棒,祝学习愉快!
相似问题