老师 帮忙检查下
来源:3-30 编程练习
lcy_18
2020-12-07 13:48:01
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>动态伪类</title>
<style type="text/css">
/*此处写代码*/
input:hover{
border-color: red;
}
input[type='text']:focus{
background-color: orange;
}
input[type='password']:focus{
background-color: yellow;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
<form action="">
<p>用户名:<input type="text"></p>
<p>密码:<input type="password"></p>
</form>
</body>
</html>
1回答
同学你好,代码实现效果很棒。继续加油,祝学习愉快!
相似问题