/* 鍥剧墖鐨勯珮搴 */ div, span, p { } /* .product-image { height: 500px; width: 100%; } */ /* 杞挱鍥剧殑楂樺害鍜屽瓧浣 */ .banner-list { position: relative; display: none; } .banner-list { position: relative; display: none; } .banner-list>div { position: absolute; width: 100%; height: 99%; background: rgba(0, 0, 0, .3); z-index: 5; } .banner-list>p { position: absolute; top: 38%; left: 12%; color: rgba(251, 251, 251, 100); font-size: 30px; z-index: 10; } .banner-list>span { position: absolute; top: 51%; left: 12%; color: #fbfbfb; font-size: 30px; z-index: 10; } .product-image { height: auto; width: 100%; } .productCenter { width: 1200px; margin: 57px auto 78px; } .productCenter-list { display: flex; flex-wrap: wrap; } .productCenter-list .productCenter-list-img { width: 32%; border: 1px solid #fff; cursor: pointer; margin-bottom: 18px; box-sizing: border-box; margin-right: 15px; box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1); } .productCenter-list .productCenter-list-img:nth-child(3n) { margin-right: 0px; } .productCenter-list .productCenter-list-img div { width: 100%; height: 255px; overflow: hidden; } .productCenter-list .productCenter-list-img div img { height: 130%; width: 100%; object-fit: cover; } .productCenter-list .productCenter-list-img p { padding: 16px 0; text-align: center; border-radius: 0px 0px 5px 5px; background-color: rgba(247, 247, 247, 100); color: rgba(16, 16, 16, 100); font-size: 16px; box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1); position: relative; z-index: 10 }