老师,我这个边框怎么不变色呢
来源:2-17 编程练习
宝慕林4199460
2019-05-07 15:24:26
<!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><br> 密码: <input type="password"> </body> </html>
1回答
你好同学,是因为如下冒号写错中文的了:
把它删除,改为英文的就能生效了哦。祝学习愉快 ,望采纳。
相似问题