老师这样写可以吗
来源:2-17 编程练习
靠课程永远学不会
2019-11-13 16:23:56
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>动态伪类</title>
<style type="text/css">
/*此处写代码*/
input:hover{
border:1.5px solid red;
}
input[type="text"]:focus{
background-color:orange;
}
input[type="password"]:focus{
background-color:yellow;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
用户名:<input type="text"><br><br>
密码:<input type="password">
</body>
</html>
1回答
同学你好,代码实现效果正确。继续加油,祝学习愉快~
相似问题