.recommend .pro_title { height: 25px; box-sizing: border-box; } .pro_title .kw { color: #f40; font-weight: bold; } .pro_phone { height: 25px; line-height: 25px; color: #999; padding: 0 10px; box-sizing: border-box; background-color: #f0f0f0; } .pro_phone i { display: inline-block; width: 14px; height: 14px; background: url(../images/phone.png) no-repeat center center / 100% 100%; margin-right: 2px; } .pro_phone a { color: #0189ff; } /* .pro_phone i { display: inline-block; width: 12px; height: 12px; background: url(../images/phone.png) no-repeat center center / 100% 100%; margin-right: 2px; } */ .recommend-ul li { float: left; margin: 0 11px 10px; width: 212px; height: 250px; overflow: hidden; border: #ddd 1px solid; margin-bottom: 0; } .recommend-ul li.first-li { margin-left: 0; } .recommend-ul li.last-li { margin-right: 0; } .recommend-ul .pro_title { height: 25px; line-height: 25px; padding: 0 10px; overflow: hidden; box-sizing: border-box; } .zssjtj.showdiv{ position: relative } .zssjtj.showdiv::after { position: absolute; z-index: 1; right: 0; bottom: -5px; display: block; content: "骞垮憡"; width: 26px; height: 16px; color: #eee; background: #000; font-size: 12px; opacity: .1; text-align: center; } @media screen and (max-width: 1024px) { .recommend-ul { display: flex; justify-content: space-between; } .recommend-ul li:first-of-type { margin-left: 5px; } .recommend-ul li.last-li { display: none; } .recommend-ul li { clear: both; width: 128px; height: 176px; } .recommend-ul li .imgdiv { position: relative; width: 126px; height: 126px; } .recommend-ul li img { width: 100%; height: 100%; } .recommend-ul .pro_title, .pro_phone { padding: 0 2px; } .pro_phone { font-size: 12px; } .pro_phone a { color: #0189ff; } .pro_phone i { display: inline-block; width: 12px; height: 12px; background: url(../images/phone.png) no-repeat center center / 100% 100%; margin-right: 2px; } .recommend-ul::after { display: none; } .recommend-ul li img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: block; margin: auto !important; max-width: 100%; max-height: 100%; width: auto; } } @media screen and (max-width: 413px) { .recommend-ul li { width: 116px; height: 162px; margin: 2px !important; } .recommend-ul li .imgdiv { width: 116px; height: 116px; } } @media screen and (max-width: 374px) { .recommend-ul li { width: 100px; height: 146px; margin: 2px !important; } .recommend-ul li .imgdiv { width: 100px; height: 100px; } .pro_phone i { display: none; } }