老师请看下,有什么问题,谢谢
来源:2-17 编程练习
慕大斯
2019-07-16 15:46:03
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>动态伪类</title>
<style type="text/css">
/*此处写代码*/
input[type]:hover{border:1px solid red;}
input[type="text"]:focus{background:orange;}
input[type="password"]:focus{background:yellow;}
</style>
</head>
<body>
<!-- 此处写代码 -->
<form>
用户名:<input type="text">
<br/><br/>
密码:<input type="password">
</form>
</body>
</html>
1回答
同学你好,实现效果没有问题,继续加油!
祝学习愉快!
相似问题
回答 1
回答 1
回答 2
回答 1
回答 1