老师检查下

来源:5-2 编程练习

罗杰明

2020-01-07 16:13:58

    <html>
    <head>
        <meta charset="text/css">
        <title>网站测试</title>
        <style type="text/css">
            .div1{
                background-color:red;
                width:100px;
                height:100px;
                position:absolute;
                 left:30px;
                 top:30px;
            }
            .div2{
                background-color:green;
                width:100px;
                height:100px;
                position:absolute;
                z-index:30;
            }
        </style>
    </head>
    <body>
        <div class="div1"></div>
        <div class="div2"></div>
    </body>
    </html>

写回答

1回答

好帮手慕酷酷

2020-01-07

同学你好,代码完成的不错!继续努力!

如果我的回答解决了你的疑惑,请采纳!祝学习愉快!

0

0 学习 · 9666 问题

查看课程

相似问题