<style type="text/css">
*{
margin:0;
padding:0;
}
.imgcen{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
}
</style>
<img src="up.jpg" class="imgcen" />
一张图片在整个网页中水平垂直居中
最新推荐文章于 2022-09-03 16:22:43 发布