请老师检查
来源:2-17 编程练习
三年没洗澡
2019-03-09 00:42:53
<!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> <!-- 此处写代码 --> 用户名:<input type="text"> </br> 密码:<input type="password"> </body> </html>
1回答
效果完美实现了