版权声明:转载请标明出处 https://blog.csdn.net/qq_41155191/article/details/83040319
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.pic{
margin: auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom:0;
}
</style>
</head>
<body>
<div>
<img src="https://img.alicdn.com/simba/img/TB1O07LJeSSBuNjy0FlSuvBpVXa.jpg" class="pic">
</div>
</body>
</html>