<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.box1{
width:500px;
height: 500px;
background-color: #00A0FF;
}
.box2{
margin-top: 100px;
width:300px;
height:300px;
background-color: red;
}
img{
margin-top:100px;
}
</style>
</head>
<body>
<div class="box1">
<div class="box2">
< img src="day0301案例/images/WeChat.jpg" alt="">
</div>
</div>
</body>
</html>
想知道这个样子写,为什么img,最里面的元素没有出现和父元素一起移动的现象呢