4种盒子/容器垂直水平居中的方案 1、定位盒子宽高已知,position:absolute;left:50%;top:50%;margin-left:-自身一半宽度;margin-top:-自身一半高度; 2019-01-24 热度288 垂直容器居中方案水平盒子