1.居中(垂直、左右) 在view中的垂直居中 display: flex;align-items: center; 在view中的左右水平居中 display: flex;justify-content: center;