css实现水平垂直居中

<div class="out">
<div class="in">
<p>占位文字</p>
<a href="#">占位地址</a>
</div>
</div>
<style>
.out { width: 100%; height: 100vh; display:flex; align-items: center;justify-content: center; text-align:center; font-size:large;}
</style>

posted on 2021-11-19 10:17  aworkstory  阅读(23)  评论(0编辑  收藏  举报

导航