返回照片墙作业练习...登陆

照片墙作业练习

弃。2019-04-01 10:27:46351

<!DOCTYPE html>

<html>

<head>

    <meta charset="utf-8">

    <title>css3照片墙</title>

    <link rel="stylesheet" type="text/css" href="./static/css/animate.min.css">

    <script type="text/javascript" src="jq.js"></script>

    <style type="text/css">

    *{margin:0px;padding:0px;}

    .box{width: 1500px;margin: 50px auto;}

    img{width:300px;height:200px;margin:10px;}

    }

    </style>

</head>

<body>

    <div class="box">

    <img src="./static/images/1.jpg">

    <img src="./static/images/2.jpg">

    <img src="./static/images/3.jpg">

    <img src="./static/images/4.jpg">

    <img src="./static/images/5.jpg">

    <img src="./static/images/6.jpg">

    <img src="./static/images/7.jpg">

    <img src="./static/images/8.jpg">

    <img src="./static/images/9.jpg">

    <img src="./static/images/10.jpg">

    <img src="./static/images/11.jpg">

    <img src="./static/images/12.jpg">

    <img src="./static/images/13.jpg">

    <img src="./static/images/14.jpg">

    <img src="./static/images/15.jpg">

    <img src="./static/images/16.jpg">

    </div>

</body>

</html>

<script type="text/javascript">

    var arr=['bounce','flash','pulse','rubberBand','shakeswing','tadaw','obble','bounceInLeft','bounceInRight','bounceInUp']

    $('img').on('click',function(){


    $('img').removeClass();

    var rand = parseInt(Math.random()*10)

    $(this).addClass('animated '+arr[rand])


    })

</script>

最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送