/* pages/mp/mp.wxss */ .mp_container { width: 100vw; height: 100vh; display: block; position: relative; } .background { width: 100%; height: 100%; } .qrcode { // background-color: yellow; width: 300rpx; height: 300rpx; position: absolute; top: 32%; left: 50%; transform: translateX(-50%) }