<!doctype html> <html> <head> <meta charset="gb2312"> <title>滑过翻转</title> <link href="css/style.css" rel="stylesheet" type="text/css"> <script src="js/jquery-1.10.2.min.js"></script> <script src="js/jsxg.js"></script> </head> <body> <div class="fz_box"> <ul> <li> <div class="box1_1"><img src="images/img.jpg" width="400" height="400"></div> <div class="text_box"> <img src="images/img1.jpg" width="400" height="400"> </div> </li> </ul> </div> <script type="text/javascript"> $(function() { $('.fz_box li').hover(function() { $(this).addClass('img_anim'); }, function() { $(this).removeClass('img_anim'); }) }) </script> <!-- <script type="text/javascript"> $(function() { $('.page1').find('ul.page1_top > li').hover(function() { $(this).addClass('img_anim'); }, function() { $(this).removeClass('img_anim'); }) }) </script>--> </body> </html>
@charset "gb2312"; /* CSS Document */ body,div,h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,table,input,button,textarea,form,th,td,tr,p,span,img,b,i,em,strong,a{margin:0;padding:0;border:0;font-family:'5FAE8F6F96C59ED1','Hiragino Sans GB','5B8B4F53',sans-serif;} em,i{font-style:normal;} img{border:0;vertical-align:top;} ul,li{list-style:none;} body{ font-family:'5FAE8F6F96C59ED1','Hiragino Sans GB','5B8B4F53',sans-serif;font-size:12px;background:#FFF;} a{text-decoration:none;} a:active{noOutline:expression(this.onFocus=this.blur());} a:focus{outline:none;-moz-outline:none;} a:visited { color:#F00;} table{ 100%; 100% !important;} .cl:after{content:'20';display:block;height:0;clear:both;} .cl{clear:both;*zoom:1;} .text{font-family:'5FAE8F6F96C59ED1','Hiragino Sans GB','5B8B4F53',sans-serif;} .w1190{ 1190px; margin:0 auto;} .fz_box{ 1190px; margin:50px auto;} .fz_box li{ float:left; position:relative;} .fz_box li div{ position:absolute; left:0; top:0;transition:all 0.4s linear 0s;} .box1_1{-webkit-transform:rotateY(0);-moz-transform:rotateY(0deg);transform:rotateY(0deg);z-index:2;} .text_box{position:relative;-webkit-transform:rotateY(-180deg);-moz-transform:rotateY(-180deg);transform:rotateY(-180deg);z-index:1;} .img_anim .box1_1{-webkit-transform:rotateY(-180deg);-moz-transform:rotateY(-180deg);transform:rotateY(-180deg);z-index:1;} .img_anim .text_box{-webkit-transform:rotateY(0deg);-moz-transform:rotateY(0deg);transform:rotateY(0deg);z-index:2}