|
@@ -0,0 +1,45 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Document</title>
|
|
|
+ <style>
|
|
|
+ .box1{
|
|
|
+ width: 600px;
|
|
|
+ height: 600px;
|
|
|
+ border:3px solid black;
|
|
|
+ margin: 50px;
|
|
|
+ position: absolute;
|
|
|
+ /* position: relative; */
|
|
|
+ }
|
|
|
+ .box2{
|
|
|
+ width: 400px;
|
|
|
+ height: 400px;
|
|
|
+ border:3px solid red;
|
|
|
+ margin:50px;
|
|
|
+ }
|
|
|
+ .box3{
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+ background-color: blue;
|
|
|
+ position: absolute;
|
|
|
+ top:0;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+ .box4{
|
|
|
+ height: 100px;
|
|
|
+ background-color: yellow;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <div class="box1">
|
|
|
+ <div class="box2">
|
|
|
+ <div class="box3"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="box4"></div>
|
|
|
+</body>
|
|
|
+</html>
|