图片旋转

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="css/jishi_01.css" rel="stylesheet"/>
</head>
<body>
<div class="da">
    <header>
        <img src="img/baidu.jpg"/>
    </header>
    <div class="top">
        <!--文本框-->
        <input type="text" id="inputtext" />
        <!--提交按钮-->
        <input type="submit" value="百度一下" id="annim"/>
    </div>
    <div class="button1">
        <img src="img/weijuchiluntu.jpg" id="img"/>
        <img src="img/yuanjihuasy.png"/>
        <img src="img/sunlinanian.png"/>
        <img src="img/gaoqingdonmanxiaotuzis.jpg"/>
        <img src="img/duoroubanqq.jpg"/>
    </div>
    <div class="button2">
        <img src="img/touxixiaoqinx.jpg" id="img2"/>
        <img src="img/xiaoqingxbanq.jpg"/>
        <img src="img/fengjingxiaotu.jpg" id="img3"/>
        <img src="img/bizhi112.png" id="img4"/>
        <img src="img/banquantupian801.png"/>
    </div>
</div>
</body>
</html>


style文件
@charset "utf-8";
/* CSS Document */
.da{
    width: 1340px;
    height: 630px;
    margin: 0 auto;
    background: url("../img/tig.jpg");
}
header{
    width: 50px;
    height: 40px;
    left: 45%;
    top: 30px;
    position: absolute;
}
#inputtext{
    margin-left: 500px;
    margin-top: 120px;
    width: 300px;
    height: 30px;
    background-position: right;
    background-image: url("../img/cap.jpg");
    background-size: 20px;
    background-repeat: no-repeat;
}
#inputtext:hover{
    transform: scale(1.5,1.5);
}
#annim{
    color: #fff;
    border: none;
    background: #7591ff;
    width: 80px;
    height: 36px;
 }
#annim:hover{
    color: red;
    transform: scale(2,2);
}
.button1{
    width: 800px;
    height: 132px;
    margin-left: 360px;
    margin-top: 50px;
    transition: all 2s ease-in-out;
    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    -o-transition: all 2s ease-in-out;
}
.button1 img{
    width: 130px;
    height: 130px;
}
.button2{
    width: 800px;
    height: 132px;
    margin-left: 360px;
    margin-top: 5px;
    transition: all 2s ease-in-out;
    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    -o-transition: all 2s ease-in-out;
}
.button2 img{
    width: 130px;
    height: 130px;
}
#img1{
    transition: all 2s ease-in-out;
    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    -o-transition: all 2s ease-in-out;
}
.button1:hover{
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
}
.button2:hover{
    transform: rotate(-360deg);
    -webkit-transform: rotate(-360deg);
    -moz-transform: rotate(-360deg);
    -o-transform: rotate(-360deg);
    -ms-transform: rotate(-360deg);
}
#img3:hover{
    transform: scale(1.5);
}
#img4:hover{
    transform: skew(0,50deg);
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值