水平垂直居中
//wxss
.main {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
注:子元素view不能高度和父元素同高