/* components/select/index.wxss */ .content { position: relative; } .options { background-color: #fff; padding: 20rpx; margin-left: 32rpx; margin-right: 32rpx; width: 100%; border: 1rpx solid #ccc; border-radius: 5rpx; box-sizing: border-box; width: calc(100% - 64rpx); max-height: 50vh; } .option { padding: 8rpx; } .modal { position: absolute; top: 100rpx; left: 0; width: 100%; height: calc(100vh - 100rpx); z-index: 99; background-color: transparent; display: flex; flex-direction: column; } .other { flex: 1; }