老师,我这个边框怎么不变色呢

来源: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回答

好帮手慕夭夭

2019-05-07

你好同学,是因为如下冒号写错中文的了:

http://img.mukewang.com/climg/5cd140b9000154b403290083.jpg

把它删除,改为英文的就能生效了哦。祝学习愉快 ,望采纳。

0

0 学习 · 40143 问题

查看课程