aaaa
This commit is contained in:
39
teaching/heshubao/margin.html
Normal file
39
teaching/heshubao/margin.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<style>
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.box1{
|
||||
width:200px;
|
||||
height: 200px;
|
||||
background: blue;
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
.box2{
|
||||
width:200px;
|
||||
height: 200px;
|
||||
background:yellow;
|
||||
/* margin-top: 50px; */
|
||||
padding-top: 50px;
|
||||
}
|
||||
.box{
|
||||
/* border-bottom: 1px solid white; */
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="box">
|
||||
<div class="box1"></div>
|
||||
</div>
|
||||
|
||||
<div class="box2"></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user