老师检查下
来源:1-2 编程练习
			罗杰明
2020-01-07 14:50:25
    <html>
    <head>
        <mate charset="UTF-8">
            <title>网站测试</title>
            <style type="text/css">
            *{
                padding:0px;
                margin:0px;
            }
                .div1{
                    background-color:red;
                    width:100px;
                    height:100px;
                    position:relative;
                    top:50px;
                    left:50px;
                }
                .div2{
                    background-color:blue;
                    width:100px;
                    height:100px;
                }
            </style>
    </head>
    <body>
        <div class="div1"></div>
        <div class="div2"></div>
    </body>
    </html>
1回答
同学的代码完成的不错,继续加油。如果将div1设置为blue,div2设置为red那就更更符合效果图啦!
具体如下:

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