老师帮我看看我的正确嘛

来源:3-3 编程练习

Wonwayshon

2020-08-13 18:20:42

<!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;
            position: relative;
            left: 40px;
            top: 40px;
        }
        .div3{
            height: 100px;
            background-color: blue;
            position: absolute;
            left: 40px;
           
        }
        .div4{
            height: 100px;
            background-color: #ffff00;
        }
    </style>
</head>
<body>

<div class="div1">
<div class="div2"></div>
<div class="div3"></div>
<div class="div4"></div>
</div>
</body>
</html>


写回答

1回答

好帮手慕阿园

2020-08-13

同学你好,课题完成的不错,实现效果是正确的,很棒呐,继续加油

祝学习 愉快

0

0 学习 · 9666 问题

查看课程