.main { position: relative; width: 100%; background-color: #ffffff; padding: 20px 0 0 0; } .one { border-bottom: 1px solid #dddddd; margin: 0 20px; height: 40px; } .text { position: relative; top: 10px; width: 40%; } .input { position: relative; text-align: right; left: 130px; top: -10px; width: 60%; font-size: 14px; } .input1 { position: relative; text-align: right; left: 120px; top: -8px; width: 50%; font-size: 14px; } .input2 { width: 50px; position: relative; text-align: right; left: 280px; top: -27px; font-size: 14px; } .button { position: relative; top: 50px; width: 300px !important; background-image: linear-gradient(to right, #fd3c1e, #c74df0); border-radius: 30px; color: #ffffff; text-align: center; font-size: small; } .top-text { float: left; } /* 下拉框 */ .top-selected { width: 50%; display: flex; float: right; align-items: center; justify-content: space-between; padding: 0 10rpx; z-index: 999; font-size: 30rpx; } /* 下拉内容 */ .select_box { background-color: #fff; padding: 0 20rpx; width: 50%; float: right; position: relative; right: 0; z-index: 1; overflow: hidden; text-align: left; animation: myfirst 0.5s; font-size: 30rpx; } .select_one { padding-left: 20rpx; width: 100%; height: 60rpx; position: relative; z-index: 1; line-height: 60rpx; border-bottom: 1px solid #ccc; } /* 下拉过度效果 */ @keyframes myfirst { from { height: 0rpx; } to { height: 210rpx; } }