/**app.wxss**/ .container { position: relative; height: 100vh; display: flex; flex-direction: column; align-items: center; box-sizing: border-box; } image{ display: block; } /*防止父元素塌陷*/ .clearfix::before{ content: ''; display: table; }