微信小程序view水平垂直居中完美解决
.view_box{
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
当 display: flex
配合 justify-content: center
使用时可以让view水平居中
而配合 align-items: center
用时可以实现垂直居中效果
喜欢表情包的同学可以体验一下