css_css 盒子水平居中 垂直居中 1、盒子垂直居中---常用3种方法 方法2: 2、盒子水平居中 3、垂直水平都居中 之前学过 1、结合上面的知识 2、flex布局可以做到 3、css3 translate 定位