<div style="width:200px;height:200px; border:2px solid #000;display:flex;justify-content:center;align-items:center;">
<div style="width:100px;height:100px;background-color: red;"></div>
</div>
【CSS】div上下居中
猜你喜欢
转载自blog.csdn.net/weixin_41728561/article/details/84935450
今日推荐
周排行