是否正确呢
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>动态伪类</title>
<style type="text/css">
/*此处写代码*/
input[type="text"]:hover,
input[type="password"]:hover{
border:1px solid red;
}
input[type="text"]:focus{
background:orange;
}
input[type="password"]:focus{
background:yellow;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
用户名:<input type="text">
<p></p>
密码:<input type="password">
</body>
</html>2
收起
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星