老师检查下
来源: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回答
同学你好,代码完成的不错!继续努力!
如果我的回答解决了你的疑惑,请采纳!祝学习愉快!