.text-col4 ul { display: flex; flex-wrap: wrap; gap: 0.3rem 0.35rem; justify-content: center; } .text-col4 ul li { width: 3.52rem; height: 1.4rem; background: #f6faff; box-shadow: 0px 20px 45px 2px rgba(222, 233, 248, 0.8); padding: 0.3rem; position: relative; } .text-col4 ul li P { max-height: 0.8rem; font-size: 0.2rem; font-family: Source Han Sans CN, Source Han Sans CN-700; font-weight: 400; color: #333; line-height: 0.4rem; text-align: center; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; position: absolute; top: 50%; transform: translateY(-50%); width: calc(100% - 0.6rem); left: 0.3rem; }