css实现水平垂直居中

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