麻烦老师检查一下,谢谢!
来源:2-17 编程练习
努力的刘同学
2020-02-23 13:52:28
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>动态伪类</title> <style type="text/css"> input:hover{ border:1px solid red; } input[type="text"]:focus{ background:orange; } input[type="password"]:focus{ background:yellow; } </style> </head> <body> <form> <span>用户名:</span><input type="text" name="text"> <br /> <br /> <span>密码:</span><input type="password" name="password"> </form> </body> </html>
1回答
同学你好,代码是正确的,继续加油。祝学习愉快~
相似问题