css實現(xiàn)水平垂直居中
<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 閱讀(32) 評論(0) 收藏 舉報
浙公網(wǎng)安備 33010602011771號