2-17编程练习
来源:2-17 编程练习
慕粉1110144175
2019-01-31 13:29:28
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>动态伪类</title> <style type="text/css"> /*此处写代码*/ input:hover{ border-color:red; } .username:focus{ background:orange; } .password:focus{ background:yellow; } </style> </head> <body> <!-- 此处写代码 --> 用户名:<input type="text" class="username"/> <br/> 密码:<input type="password" class="password"/> </body> </html>
1回答
同学,你好。效果实现的不错,加油,继续努力。
祝学习愉快!
相似问题