老师帮我看看 怎么不行

来源:5-2 编程练习

慕粉1211037016

2020-03-23 23:39:06

<html>
<head>
    <style type="text/css">
       #one{
               width: 100px;
               height: 100px;
            background: red;
      position: absolute;
      top:100px;
      left: 100px;
      z-index:5;
            /* 请在此添加代码*/
       }
        #two{
            width: 100px;
               height: 100px;
            position: absolute;
      background: green;
      top:120px;
      left: 120px;
      z-index:4;
            /* 请在此添加代码*/
       }
    </style>
 </head>

<body>
<div id="one">
    
</div>
<div id="two">

</div>
</body>
</html>

写回答

1回答

guly

2020-03-24

你好,你的实现效果是正确的,祝学习愉快!

0

0 学习 · 9666 问题

查看课程