摘要: html模板部分 <div class="parent"> <div class="content">内容垂直居中</div> </div> 1.绝对定位,配合top:50%和负margin-top(元素高度一半)进行垂直居中 .content{ position: absolute; top: 5 阅读全文
posted @ 2020-08-01 14:58 流弊的小涛 阅读(143) 评论(0) 推荐(0) 编辑