.list { display: flex; flex-direction: column; } page{ background-color: #f7f7f7; } .left{ padding: 8px; width:80px; height: 80px; border-radius: 10px; position: relative; left: 20px; top: 10px; } .containercontent{ margin: 0px 15px 10px 15px; border: 1px solid #eec2c7; border-radius: 10px; overflow:hidden; } .container{ color: #333333; border-radius: 10px; height: 150px; } .content { margin-left: 10px; line-height: 1.6; width: 70%; } .title1{ font-size: 18px; } .title2{ font-size: 14px; color: gray; } .title2right{ float: right; color: rgb(24, 23, 23); font-size: 16px; position: relative; bottom: 50px; } .tar{ width: 100%; padding-bottom: 15px; } .tab1 { width: 50px; height: 20px; border: 1px solid #eec2c7; border-radius: 30px; text-align: center; /* 水平居中 */ line-height: 20px; /* 垂直居中 */ } .tab2 { margin-left: 10px; /* 给tab2添加一些间距 */ width: 50px; height: 20px; border: 1px solid #eec2c7; border-radius: 30px; text-align: center; /* 水平居中 */ line-height: 20px; /* 垂直居中 */ background-color: #eec2c7; } .box{ display: flex; position: relative; left: 120px; top: 20px; } .image{ width: 80rpx; height: 80rpx; border-radius: 50%; margin-right: 10rpx; margin-top: 10rpx; margin-left: 20rpx; } .text{ position: relative; } .swiper-item { display: flex; flex-direction: column; height: auto; /* 自动适应内容高度 */ min-height: 100%; /* 或设置最小高度占满父容器 */ } .swiper { height: auto; /* 根据内容自动调整 */ } .tab1 { width: 50px; height: 20px; border: 1px solid #eec2c7; border-radius: 30px; text-align: center; /* 水平居中 */ line-height: 20px; /* 垂直居中 */ } .box1{ position: relative; display: flex; justify-content: flex-end; bottom: 70rpx; margin-right: 10rpx; }