/* compontents/dialog/dialog.wxss */ .dialog { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, .4); z-index:100; } .dialog-contain { position: absolute; left: 0; top: 0; bottom: 0; right: 0; width: 80%; height: 200rpx; background: #fff; margin: auto; border-radius: 20rpx; text-align: center; padding: 0 40rpx; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-around; font-size: 32rpx; }