width: 100%; height: 100%; display: flex; flex-direction: row;/*这里可以不写,flex布局默认方向横向即row*/ justify-content: center; align-items: center;