/**app.wxss**/ .container { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 200rpx 0; box-sizing: border-box; } radio-group text { font-size: 25rpx; } radio .wx-radio-input { border-radius: 50%; width: 24rpx; border: 2rpx solid #5e5e5f; height: 24rpx; } radio .wx-radio-input.wx-radio-input-checked { border: none; background: #07c160; } radio .wx-radio-input.wx-radio-input-checked::before { border-radius: 50%; /* 圆角 */ width: 28rpx; /* 选中后对勾大小,不要超过背景的尺寸 */ height: 28rpx; /* 选中后对勾大小,不要超过背景的尺寸 */ line-height: 28rpx; text-align: center; font-size: 20rpx; /* 对勾大小 30rpx */ color: #fff; /* 对勾颜色 白色 */ background: #07c160; transform: translate(-50%, -50%) scale(1); } checkbox-group text { font-size: 25rpx; } checkbox .wx-checkbox-input { width: 24rpx; border: 2rpx solid #5e5e5f; height: 24rpx; margin-left: 5rpx; } checkbox .wx-checkbox-input.wx-checkbox-input-checked { border: none; background: #07c160; } checkbox .wx-checkbox-input.wx-checkbox-input-checked::before { /* 圆角 */ width: 28rpx; /* 选中后对勾大小,不要超过背景的尺寸 */ height: 28rpx; /* 选中后对勾大小,不要超过背景的尺寸 */ line-height: 28rpx; text-align: center; font-size: 20rpx; margin-left: 5rpx; /* 对勾大小 30rpx */ color: #fff; /* 对勾颜色 白色 */ background: #07c160; transform: translate(-50%, -50%) scale(1); }