摘要: 问: 如何将一个子元素水平垂直居中 方法一:定位 + margin 父元素相对定位,子元素绝对定位,并设置子元素margin:auto <style> .father{ position: relative; width: 400px; height:400px; } .son{ position: 阅读全文
posted @ 2023-03-02 16:33 汤姆猫Tom 阅读(104) 评论(0) 推荐(0)