body { background: #dddada; font-family: '微软雅黑'; } .containers { width: 1080px; /* overflow: hidden; */ min-height: 80vh; margin: 0 auto; } .con-title { width: 300px; margin: 0 auto; margin-top: 20px; display: inline-block; font-size: 20px; text-align: center; font-weight: bold; padding: 20px; } .con { padding-right: 20px !important; /* 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: 17%; height: 80vh; display: inline-block; margin: 25px 10px; position: relative; cursor: pointer; } .case { /* padding: 10px; */ width: 100%; height: 100%; position: absolute; top: 0; background: url(../img/divBac.png); background-size: 100% 100%; /* 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: 80vh; background-repeat: no-repeat; background-size: cover; background-position: top center; width: 100%; height: 100%; background-size: 100% 100%; } .con li p { color: #fff; margin-top: 10px; font-size: 16px; 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; } */ } @media screen and (max-width: 350px) { .con li { margin: 20px auto; } } .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: 14px; font-weight: 100; } }