国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

照片墻動態(tài)效果

Original 2018-11-27 09:06:48 289
abstract:<!DOCTYPE html> <html> <head> <title>照片墻(CSS3動態(tài)效果)</title> <link rel="stylesheet" type="text/css" href="static/css/anima
<!DOCTYPE html>
<html>
<head>
	<title>照片墻(CSS3動態(tài)效果)</title>
	<link rel="stylesheet" type="text/css" href="static/css/animate.min.css">
    <link rel="shortcut icon"  href="static/images/logo.png" type="image/x-icon" />
	<script type="text/javascript" src="static/js/jquery.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"/>
 </div>
</body>
<script type="text/javascript">	
   var arr=['bounce','flash','pulse','rubberBand','shakeswing','tadaw','obble','bounceInLeft','bounceInRight','bounceInUp']
  $('img').on('click',function() {
		$('img').removeClass();
       	 //rand隨機數(shù)字
   	 var rand=parseInt(Math.random()*10)
     //隨機生成新class
     console.log(arr[rand])
     console.log(rand)
   	 $(this).addClass('animated '+arr[rand])
   
   })

</script>
</html>

```javascript

//animate自己做好的動畫效果

var arr=['bounce','flash','pulse','rubberBand','shakeswing','tadaw','obble','bounceInLeft','bounceInRight','bounceInUp']
 $('img').on('click',function() {
$('img').removeClass();
      //rand隨機數(shù)字
  var rand=parseInt(Math.random()*10)
    //隨機生成新class
  $(this).addClass('animated '+arr[rand])

```

Correcting teacher:韋小寶Correction time:2018-11-27 09:11:21
Teacher's summary:嗯!不錯寫的很完整!這種小案例要多練才有效!課后記得多多練習!

Release Notes

Popular Entries