justify-content是水平布局,与之对应的是垂直布局align-item .tip{ display: flex; justify-content: center; align-item: center; }