老师,帮我检查一下有错误吗?

来源:5-2 编程练习

慕先生8145006

2019-08-29 15:16:29

<html>

<head>

    <style type="text/css">

       #one{

             width: 100px;

           height: 100px;

       background: red;

     /* 请在此添加代码*/

           position: absolute;

          top: 20px;

          left: 100px;

           z-index: 30;

        }

        #two{

        width: 100px;

        height: 100px;

background: green;

/* 请在此添加代码*/

      position: absolute;

      top: 30px;

      left: 120px;

      z-index: 10;

       }

    </style>

 </head>


<body>

<div id="one">

    

</div>

<div id="two">


</div>

</body>

</html>


写回答

1回答

好帮手慕小班

2019-08-29

同学你好!代码正确,运行效果没错,很棒呐,继续加油,祝学习愉快~

0

0 学习 · 9666 问题

查看课程