@CHARSET "UTF-8"; /* 数字化赋能企业角色 */ .juese { display: flex; justify-content: space-between; } .juese li { position: relative; overflow: hidden; } .jueseImg { overflow: hidden; } .jueseImg img { width: 100%; } .jueseMain { position: absolute; left: 0px; top: 84%; right: 0px; background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); transition: all 0.5s; color: #fff; padding: 10px 15px; } .jueseMain h2 { font-size: 16px; } .jueseMain a { color: #fff; display: inline-block; padding: 5px 10px; border: 1px solid #fff; border-radius: 3px; margin-top: 15px; } .juese li:hover .jueseMain { top: 68%; } .index_chanpin { display: flex; } .index_chanpin li { flex: 1; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-right: 1px solid #ddd; transition: all 0.5s; overflow: hidden; position: relative; } .index_chanpin li:first-child { flex: 1.5; border: 0px; border-right: 1px solid #ddd; } .index_chanpin_hover { position: absolute; left: 0px; right: 0px; bottom: 0px; top: 70%; transition: all 0.5s; padding: 20px 15px 15px 15px; margin-top: 0px; } li:first-child .index_chanpin_hover { background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); } .index_chanpin_hover { text-align: center; margin-top: 30px; } .index_chanpin_hover h2 { font-size: 16px; font-weight: normal; } .index_chanpin_hover p { display: inline-block; padding: 5px 10px; border: 1px solid #aaa; border-radius: 3px; margin-top: 15px; opacity: 0; } li:first-child .index_chanpin_hover p { border: 1px solid #fff; } .index_chanpin li a:hover { color: #333; } .index_chanpin li:first-child a { color: #fff; } .index_chanpin li:first-child a:hover { color: #fff; } li:hover .index_chanpin_hover { top: 58%; } li:hover .index_chanpin_hover p { opacity: 1; } /* 解决方案 */ .jiejuefangan { flex-wrap: wrap; justify-content: space-between; } .jiejuefangan li { flex: auto; width: 25%; margin-bottom: 10px; overflow: hidden; border: 0px; } .jiejuefangan li:first-child { border: 0px; } .jiejuefangan li:first-child { flex: auto; } .jiejuefangan .index_chanpin_hover { background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); } .jiejuefangan li a { display: block; color: #fff; padding-right: 7px; overflow: hidden; } .jiejuefangan li a:hover { color: #fff; } .jiejuefangan li:nth-child(4n+2) a { padding-left: 3px; padding-right: 5px; } .jiejuefangan li:nth-child(4n+3) a { padding-left: 5px; padding-right: 3px; } .jiejuefangan li:nth-child(4n) a { padding-right: 0px; padding-left: 7px; } .jiejuefangan li .index_chanpin_hover { right: 7px; top: 70%; } .jiejuefangan li:nth-child(4n+2) .index_chanpin_hover { left: 3px; right: 5px; } .jiejuefangan li:nth-child(4n+3) .index_chanpin_hover { left: 5px; right: 3px; } .jiejuefangan li:nth-child(4n) .index_chanpin_hover { left: 7px; right: 0px; } .jiejuefangan .chanpin_img { background-color: #f4f4f4; } .jiejuefangan li:hover .index_chanpin_hover { top: 55%; } .bpsBg { background: url("../images/bpsBg.jpg") no-repeat center; padding: 80px 0px; } .product_more { display: none; } @media (max-width:414px) { .jiejuefangan { flex-wrap: wrap; margin-left: 5px; margin-right: 5px; } .jiejuefangan li { box-sizing: border-box; padding-left: 5px; padding-right: 5px; } .jiejuefangan li a { padding: 0px; } .jiejuefangan li .index_chanpin_hover, .jiejuefangan li:nth-child(4n+2) .index_chanpin_hover, .jiejuefangan li:nth-child(4n+3) .index_chanpin_hover, .jiejuefangan li:nth-child(4n) .index_chanpin_hover { left: 5px; right: 5px; /* top: 50%; */ } .jiejuefangan li:nth-child(4n+2) a, .jiejuefangan li:nth-child(4n+3) a, .jiejuefangan li:nth-child(4n) a { padding: 0px; } .jiejuefangan li { width: 50%; } .juese { flex-wrap: wrap; } .juese li { width: 33.33%; } .jueseMain { top: 79%; } .jueseMain a { display: none; } .juese li:hover .jueseMain { top: 79%; } .index_chanpin { flex-wrap: wrap; margin-left: 5px; margin-right: 5px; } .index_chanpin li { flex: none; width: 50%; box-sizing: border-box; padding-left: 5px; padding-right: 5px; border: 0px; margin-bottom: 10px; } .index_chanpin li:first-child { flex: none; } .index_chanpin_hover { background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); margin-top: 0px; top: 65%; left: 5px; right: 5px; } .index_chanpin_hover p { display: none; } .index_chanpin_hover h2 { color: #fff; } .product_more { display: flex; align-items: center; justify-content: center; } .product_more a { display: flex; align-items: center; justify-content: center; background-color: #f1f1f1; width: 100%; height: 100%; font-size: 16px; color: #888; } .pro_more_p { display: none; } .jianju { margin: 5px; } .list-boxes:nth-child(odd) { margin-bottom: auto; } .case_box { padding-left: 20px; padding-right: 20px; box-sizing: border-box; width: 100%; } .case_c .case_img { margin-bottom: 10px; } .case_hover { display: none; } .case_box .jianju { padding-bottom: 10px; } .shuziBar ul { padding-top: 44px; padding-bottom: 44px; } .tc-padtop { padding-top: 0px; } }