/* pages/service/service.wxss */ .serviceBox { position: absolute; width: 594rpx; height: 778rpx; top: 50%; left: 50%; transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%); } .serviceBg { width: 100%; height: 100%; } .code { position: absolute; top: 0; left: 50%; width: 78%; text-align: center; transform: translate(-50%,0); -webkit-transform: translate(-50%,0); padding-top: 76rpx; } .codeImg { width: 284rpx; height: 284rpx; margin: auto; } .codeTxt { margin-top: 42rpx; font-size: 36rpx; color: rgba(51, 51, 51, 1); }