垂直水平居中的方式 李子栗子梨 2021-03-03 216 阅读1分钟 绝对定位的方法 利用transform属性 利用margin的负值 将top,left,right,bottom都设置为0,同时将margin设置为auto 利用弹性盒子 div水平垂直居中的六种方法