老师,我的代码有哪些地方可以改进的吗?
来源:3-3 编程练习
 
			weixin_慕侠0167486
2020-07-13 16:51:07
<!DOCTYPE html>
<html>
<head>
   <title></title>
    <meta charset="UTF-8">
   <style>
        div{
            width:100%;
        }
        .div1{
            height: 400px;
            background-color: #667766;
        }
        .div2{
            height: 100px;
            background-color: green;
            top:40px;
            left: 40px;
            position: relative;
        }
        .div4{
            height: 100px;
            background-color: blue;
            top:100px;
            left: 60px;
            position: absolute;
        }
        .div3{
            height: 100px;
            background-color: #ffff00;
            position: absolute;
            top:100px;
        }
    </style>
</head>
<body>
<div class="div1">
<div class="div2"></div>
<div class="div3"></div>
<div class="div4"></div>
</div>
</body>
</html>
1回答
同学你好,同学实现效果是正确的,不需要改进了,很棒,继续加油
祝学习愉快
相似问题