body { background: #dddada; font-family: '微软雅黑'; } .containers { width: 1080px; /* overflow: hidden; */ min-height: 80vh; margin: 0 auto; } .con-title { font-size: 24px; background: #f9fafc; text-align: center; font-weight: bold; padding-top: 40px; } .con { /* width: 100%; */ height: auto; overflow: hidden; background: #f9fafc; margin: 0 auto 0; display: flex; flex-wrap: wrap; padding: 20px 2%; justify-content: center; } .con li { text-align: center; width: 30%; display: inline-block; margin: 25px 10px; } .case { padding: 10px; background: #fff; border-radius: 10px; box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4); transition: all 0.3s; } .case:hover { box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.6); transform: translateY(-15px); } .case .card-img { width: 100%; height: 180px; background-repeat: no-repeat; background-size: cover; background-position: top center; } .con li p { margin-top: 10px; font-size: 18px; font-weight: 100; } .link-a { width: 100%; height: 100%; display: inline-block; } #introductionWrap{ position: absolute; z-index: 1; display: flex; flex-direction: column; right: 20px; text-align: right; top: 20px; font-size: 18px; color: #ffffff; font-weight: 100; line-height: 30px; letter-spacing: 2px; } #companyText{ position: absolute; z-index: 1; font-size: 16px; color:rgb(153, 153, 153); font-weight: 100; left: 50%; transform: translateX(-50%); bottom: 20px; letter-spacing: 1px; text-shadow:rgb(51, 51, 51) 0px 1px 1px; } @media screen and (max-width: 600px) { .containers { width: 100%; } .con { padding: 0; } .case .card-img { background-size: auto 100%; height: 90px; } .con li { width: 44%; } #introductionWrap{ position: absolute; z-index: 1; display: flex; flex-direction: column; right: 10px; text-align: right; top: 16px; font-size: 16px; color: #ffffff; font-weight: 100; line-height: 28px; letter-spacing: 1px; } /* .con li p { font-size: 16px; } */ } .hide{ display: none; } #companyText{ position: absolute; z-index: 1; font-size: 16px; font-weight: 100; left: 50%; transform: translateX(-50%); bottom: 20px; letter-spacing: 1px; } @media screen and (max-width: 320px) { .con li { width: 43%; } .con li p { font-size: 16px; font-weight: 100; } }