首页 > 其他 > 详细

鼠标放上去实现图片旋转

时间:2014-12-01 19:11:52      阅读:301      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图片</title>
<style>
*{
 margin: 0;
 padding: 0;
}
 div{
  width: 500px;
  height: 800px;
  background-image: url(./01.JPG);
  margin: 0 auto;
 }
 #son{
  width: 300px;
  height: 454px;
  background: orange;
  float: right;
  margin-top: 50px;
 }
 li{
  list-style-type: none;
  float: left;
  margin-right: 1px;
 }
 img{
  width: 98px;
 }
 li img{
  transform: rotateX(-135deg) rotate(-270deg);
 }
 #fl{
  width: 100px;
  height: 200px;
  margin: 0 auto;
 }
 #fl img:hover{
  transition-duration: 1s;           //延时过渡   //要与delay区分
  -moz-transition-duration: 1s;       /* Firefox 4 */
  -webkit-transition-duration: 1s;      /* Safari 和 Chrome */
  -moz-transform:rotate(360deg) scale(1.5); -webkit-transform:rotate(360deg) scale(1.5);      //-moz-transform:rotate(360deg)火狐旋转角度   scale(1.5):图片变大1.5倍
 }
</style>
</head>
 
<body>
    <div>
     <div id="fl"><img src="./03.JPG" /></div>
     
       <li><img src="./01.JPG" /></li>
     
     </div>
    </div>
</body>
</html>

鼠标放上去实现图片旋转

原文:http://www.cnblogs.com/zzg521/p/4135720.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!