没有听明白滚动容器上下留白
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{margin:0px;padding:0px;}
.box{
background:grey;
padding:50px 0px;
}
img{width:150px;height:300px;}
</style>
</head>
<body>
<div>
<img src="psb.jpg">
</div>
</body>
</html>
给父容器使用padding:50px 0px;图片上下都有留白啊