.box { width: 100vw; min-height: 100vh; /* 确保容器至少占满屏幕的高度 */ background-color: #eec2c7; overflow-y: auto; /* 允许竖直方向滚动 */ width: 100vw; /* 或者 750rpx */ height: auto; overflow:hidden; /* 防止溢出 */ } .box3 { display: flex; flex-direction: column; background-color: rgba(252, 240, 240, 0.807); border-radius: 20px; padding: 10px; margin-bottom: 80px; /* 留出一些空间给底部结算栏 */ } .box1 { width: 100%; height: 170px; display: flex; flex-direction: row; } .image { width: 120px; height: 120px; border-radius: 10px; position: relative; left: 20px; top: 20px; } .box4 { position: relative; top: 80px; left: 10px; width: 25px; height: 25px; } .box5 { height: 50px; position: relative; left: 40px; top:30px; } .text { padding: 5px; } .container { position: relative; left: 85px; top: 25px; } .boxd { width: 100px; height: 40px; position: relative; border-radius: 30px; background-color: rgb(162, 12, 12); left: 280rpx; display: flex; align-items: center; justify-content: center; } .text1 { color: #ffffff; position: unset; } .boxall { display: flex; align-items: center; padding: 10px; position: fixed; bottom: 0; left: 0; width: 100%; background-color: #fff; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); } .text2 { position: relative; left: 185rpx; } .text3{ height: 20px; position: absolute; left: 60rpx; }