弹性布局flex
<style type="text/css">
.image{
margin: 0;
padding: 0;
height: 50vh;
display: flex;
justify-content: center;
align-items: center;
}
img {
width: 50px;
height: 50px;
}
</style>
<body>
<div class="image">
<image src="../images/simp1.png" style="width: 150px;height: 150px;"></image>
</div>
</body>