<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>封裝動畫函數</title> <style type="text/css"> input:hover { cursor: pointer; } div { margin-top: 30px; width: 200px; height: 200px; background-color: green; position: absolute; } </style> </head> <body> <input type="button" value="移動400px" id="btn1"> <input type="button" value="移動到800px" id="btn2"/> <div id="dv"></div> <script type="text/javascript"> document.getElementById("btn1").onclick = function() { animate(document.getElementById("dv"), 400); } document.getElementById("btn2").onclick = function() { animate(document.getElementById("dv"), 800); } /* * 移動任意一個元素到指定位置 * element: 要移動的元素 * target: 要移動的距離(px) */ function animate(element, target){ clearInterval(element.tiemId); element.timeId = setInterval(function() { var current = element.offsetLeft; var step = 10; // 每次移動10px step = current < target ? step : -step; current += step; if(Math.abs(target-current) > Math.abs(step)){ element.style.left = current + "px"; }else { clearInterval(element.timeId); element.style.left = target + "px"; } }, 20); } </script> </body> </html> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看