溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

搞笑好玩兒的圖片震動jquery效果小例子

發(fā)布時間:2020-06-05 08:00:36 來源:網(wǎng)絡 閱讀:492 作者:panguixiang 欄目:web開發(fā)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
ul,li,div,h2,h3,{margin:0; padding:0; font-size:12px;}
img{border:0; vertical-align:top;}
.bedding{float:left; display:inline; width:350px;height:310px;margin:10px 0 10px 10px; text-align:center; background:#ddd;}
.bedding img{width:330px; height:283px; border:1px solid #000; padding:2px; margin-top:10px; position:relative;cursor:pointer}
</style>
</head>

<body>
<div class="bedding"><img src="bedding.jpg" /></div>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function(){
 $(".bedding img").mouseover(function(){
  if(!$(this).is(":animated")){
   $(this).animate({top:10},300).animate({top:0},100)
   .animate({top:-5},100).animate({top:0},50)
   .animate({top:-5},50).animate({top:0},0);
  }
 });
});
</script>
</body>
</html>

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。

AI