第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

怎么使animate動畫循環(huán)起來呢

<!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>

? ? ? ? <title>制作移動位置的動畫</title>

? ? ? ? <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>

? ? ? ? <link href="style.css" rel="stylesheet" type="text/css" />

? ? </head>

? ??

? ? <body>

? ? ? ? <h3>制作移動位置的動畫</h3>

? ? ? ? <span></span>

? ? ? ? <div id="tip"></div>

? ? ? ??

? ? ? ? <script type="text/javascript">

? ? ? ? ? ? $(function () {

? ? ? ? ? ? ? ? $("span").animate({

? ? ? ? ? ? ? ? ? ? left: "+=100px"

? ? ? ? ? ? ? ? }, 3000, function () {

? ? ? ? ? ? ? ? ? ? $("span").animate({

? ? ? ? ? ? ? ? ? ? ? ? height: '+=30px',

? ? ? ? ? ? ? ? ? ? ? ? width: '+=30px'

? ? ? ? ? ? ? ? ? ? }, 3000, function () {

? ? ? ? ? ? ? ? ? ? ? ? $("#tip").html("執(zhí)行完成!");

? ? ? ? ? ? ? ? ? ? });

? ? ? ? ? ? ? ? });

? ? ? ? ? ? });

? ? ? ? </script>

? ? </body>

</html>


正在回答

2 回答

在函數(shù)外面再加以一個條件if(1)

0 回復(fù) 有任何疑惑可以回復(fù)我~

<!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>

? ? ? ? <title>制作移動位置的動畫</title>

? ? ? ? <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>

? ? ? ? <link href="style.css" rel="stylesheet" type="text/css" />

? ? </head>

? ??

? ? <body>

? ? ? ? <h3>制作移動位置的動畫</h3>

? ? ? ? <span></span>

? ? ? ? <div id="tip"></div>

? ? ? ??

? ? ? ? <script type="text/javascript">

? ? ? ? ? ? $(function () {

? ? ? ? ? ? ? ? $("span").animate({left: "+=100px"}, 3000, function () {

? ? ? ? ? ? ? ? ? ? $(this).animate({height: '+=30px',width: '+=30px'}, 3000, function ()?

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$("#tip").html("執(zhí)行完成!");

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? });

? ? ? ? ? ? ? ? });

? ? ? ? ? ? });

? ? ? ? </script>

? ? </body>

</html>


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

listenlo 提問者

沒有達到循環(huán)效果呢
2016-05-18 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消
jQuery基礎(chǔ)課程
  • 參與學(xué)習(xí)       154724    人
  • 解答問題       7289    個

加入課程學(xué)習(xí),有效提高前端開發(fā)速度

進入課程

怎么使animate動畫循環(huán)起來呢

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號