2-14 编程练习作业提交

来源:2-17 编程练习

MiMicccc

2020-09-06 22:03:43

<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <title>动态伪类</title>
        <style type="text/css">
            /*此处写代码*/
            input { border: 1px solid #333; }
            input:hover { border: 1px solid red; }
            input[type="text"]:focus { background: orange; }
            input[type="password"]:focus { background: yellow; }
        </style>
    </head>
    <body>
        <!-- 此处写代码 -->
        <form action="">
            用户名:<input type="text" name="username">
            <br>
            <br>
            密码:<input type="password" name="password">
        </form>
    </body>
</html>
写回答

1回答

好帮手慕言

2020-09-07

同学你好,效果是正确的,继续加油,祝学习愉快~

0

0 学习 · 40143 问题

查看课程