ul.pic_list{overflow:hidden; margin:10px 0;} ul.pic_list li{width:190px;height:144px;float: left;overflow: hidden;position: relative;border:8px solid #fff; box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);margin:5px;} ul.pic_list li .img_box{-webkit-transition: all 0.35s ease-in-out;-moz-transition: all 0.35s ease-in-out;transition: all 0.35s ease-in-out;} ul.pic_list li .img_box{width:100%;height:198px;overflow:hidden; } ul.pic_list li .img_box img{width:100%;height:auto;} /*ul.pic_list li .img_box img:hover{ -webkit-transform:scale(1.1);-moz-transform: scale(1.1);-o-transform:scale(1.1);}*/ /*图片列表模版一*/ ul.pic_list li a.title_type{position: absolute;height: 36px;line-height: 36px;width: 100%;left: 0;bottom: 0;text-indent: 1em;color: #fff; background:url("/Content/Areas/Common/images/Article/op_bg.png") repeat;*display: block;*overflow: hidden;} ul.pic_list li a.title_type:hover{ color: #009983;} /*图片模版列表三*/ ul.pic_list li .info { position: absolute; top: 0; bottom: 0; left: 0; right: 0; text-align: center; -webkit-backface-visibility: hidden; backface-visibility: hidden; } /*效果一*/ ul.effect_1 li .mask1{ left: auto; right: 0; top: 0; -webkit-transform: rotate(55deg) translateX(-180px); -moz-transform: rotate(55deg) translateX(-180px); -ms-transform: rotate(55deg) translateX(-180px); -o-transform: rotate(55deg) translateX(-180px); transform: rotate(55deg) translateX(-180px); -webkit-transform-origin: 100% 0%; -moz-transform-origin: 100% 0%; -ms-transform-origin: 100% 0%; -o-transform-origin: 100% 0%; transform-origin: 100% 0%; } ul.effect_1 li .mask2{ top: auto; bottom: 0; left: 0; -webkit-transform: rotate(55deg) translateX(180px); -moz-transform: rotate(55deg) translateX(180px); -ms-transform: rotate(55deg) translateX(180px); -o-transform: rotate(55deg) translateX(180px); transform: rotate(55deg) translateX(180px); -webkit-transform-origin: 0% 100%; -moz-transform-origin: 0% 100%; -ms-transform-origin: 0% 100%; -o-transform-origin: 0% 100%; transform-origin: 0% 100%; } ul.effect_1 li .mask1,ul.effect_1 li .mask2{ position: absolute; background: #333333; background: rgba(0, 0, 0, 0.6); height:328px; width:156px; -webkit-transition: all 0.35s ease-in-out; -moz-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; } ul.effect_1 li a:hover .mask1{ -webkit-transform: rotate(55deg) translateX(1px); -moz-transform: rotate(55deg) translateX(1px); -ms-transform: rotate(55deg) translateX(1px); -o-transform: rotate(55deg) translateX(1px); transform: rotate(55deg) translateX(1px); } ul.effect_1 li a:hover .mask2{ -webkit-transform: rotate(55deg) translateX(-1px); -moz-transform: rotate(55deg) translateX(-1px); -ms-transform: rotate(55deg) translateX(-1px); -o-transform: rotate(55deg) translateX(-1px); transform: rotate(55deg) translateX(-1px); } ul.effect_1 li .info{ background: #111111; height: 0; visibility: hidden; width: 361px; -webkit-transform: rotate(-35.5deg) translate(-120px, 130px); -moz-transform: rotate(-35.5deg) translate(-120px, 130px); -ms-transform: rotate(-35.5deg) translate(-120px, 130px); -o-transform: rotate(-35.5deg) translate(-120px, 130px); transform: rotate(-35.5deg) translate(-120px, 130px); -webkit-transform-origin: 0% 100%; -moz-transform-origin: 0% 100%; -ms-transform-origin: 0% 100%; -o-transform-origin: 0% 100%; transform-origin: 0% 100%; -webkit-transition: all 0.1s ease-in-out 0.35s; -moz-transition: all 0.1s ease-in-out 0.35s; transition: all 0.1s ease-in-out 0.35s; } ul.effect_1 li a:hover .info{ width: 265px; height:90px; visibility: visible; top: 40px; -webkit-transform: rotate(0deg) translate(0, 0); -moz-transform: rotate(0deg) translate(0, 0); -ms-transform: rotate(0deg) translate(0, 0); -o-transform: rotate(0deg) translate(0, 0); transform: rotate(0deg) translate(0, 0); } ul.effect_1 li .info h2{ text-transform: uppercase; color: #fff; text-align: center; font-size: 18px; padding: 10px; margin-top: 5px; opacity: 0; background: transparent; border-bottom:#fff; -webkit-transition: all 0.1s ease-in-out 0.2s; -moz-transition: all 0.1s ease-in-out 0.2s; transition: all 0.1s ease-in-out 0.2s; } ul.effect_1 li .info p { font-size: 12px; color: #fff; padding: 20px 20px 20px; text-align: center; opacity: 0; -webkit-transition: all 0.1s ease-in-out 0.2s; -moz-transition: all 0.1s ease-in-out 0.2s; transition: all 0.1s ease-in-out 0.2s; } ul.effect_1 li a:hover .info h2,ul.effect_1 li a:hover .info p { opacity: 1; } /*效果二*/ ul.effect_2 .Img_Box:before{ position: absolute; display: block; content: ''; width: 100%; height: 100%; box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.3); -webkit-transition: all 0.35s ease-in-out; -moz-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; } ul.effect_2 li .info{ opacity: 0; -webkit-transform: scale(0); -moz-transform: scale(0); -ms-transform: scale(0); -o-transform: scale(0); transform: scale(0); -webkit-transition: all 0.35s ease-in-out; -moz-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; } ul.effect_2 li .info h2{ color: #fff; text-transform: uppercase; position: relative; letter-spacing: 2px; font-size: 22px; margin: 0 20px; padding: 38px 0 0 0; line-height: 40px; text-shadow: 0 0 1px #fff, 0 1px 2px rgba(0, 0, 0, 0.3); } ul.effect_2 li .info p{ color: #fff; padding: 10px 5px; margin: 0 30px; font-size: 12px; border-top: 1px solid #fff; -webkit-transition: all 0.35s ease-in-out; -moz-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; } ul.effect_2 li a:hover .Img_Box:before { box-shadow: inset 0 0 0 110px #333333, inset 0 0 0 16px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 0 0 110px rgba(0, 0, 0, 0.6), inset 0 0 0 16px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.1); } ul.effect_2 li a:hover .info { opacity: 1; -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1); } @media only screen and (max-width:768px){ ul.pic_list li{width:31%;border:none;margin:10px 1% 1px;} /*效果一*/ ul.effect_1 li .mask1, ul.effect_1 li .mask2{display: none;} /*效果二*/ ul.effect_2 .Img_Box:before{display: none} /*效果一、二公用*/ ul.pic_list li .info{transform:inherit;height:36px;line-height: 36px;width: 100%;background: rgba(0,0,0,0.85);top:inherit;visibility: visible;opacity: 1} ul.pic_list li .info h2{opacity:1;margin:0;padding:0;font-size: 14px;text-align: left;text-indent: 1em;text-shadow:inherit;line-height:36px;letter-spacing:inherit;} } @media only screen and (max-width:640px){ ul.pic_list li{border:20px solid #fff;margin:10px auto 1px;float: none;width:80%;height:auto;} ul.pic_list li .img_box img{height:auto;} }