/* case/pages/scan/scan.wxss */ .page { position: relative; height: 100vh; } /* 新增绿色方块样式 */ .green-square { position: absolute; background-color: #00FF00; border: 2px solid #333; } .btn { position: absolute; bottom: 100rpx; left: 50%; transform: translateX(-50%); z-index: 1; } /* 调整拖拽手柄定位方式 */ .resize-handle { position: absolute; width: 20px; height: 20px; background: #fff; border: 2px solid #333; z-index: 10; } .resize-handle.tl { top: -10px; left: -10px; } .resize-handle.tr { top: -10px; right: -10px; } .resize-handle.bl { bottom: -10px; left: -10px; } .resize-handle.br { bottom: -10px; right: -10px; }