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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>移動元素</title> <style type="text/css"> pre { font-size: 16px; font-weight: 700; margin-top: 255px; } * { margin: 0; padding: 0; } input { margin-top: 20px; } input:hover { cursor: pointer; } div { margin-top: 30px; width: 200px; height: 200px; position: absolute; /* 要移動div,必須是absolute才不會影響其他元素的布局 */ background-color: green; } </style> </head> <body> <input type="button" value="移動400px" id="btn1"> <div id="dv"></div> <pre> div要移動必須要脫離文檔流:position: absolute; element.offsetHeight 返回元素的高度。 element.offsetWidth 返回元素的寬度。 element.offsetLeft 返回元素的水平偏移位置。 element.offsetParent 返回元素的偏移容器。 element.offsetTop 返回元素的垂直偏移位置。 </pre> <script type="text/javascript"> var div = document.getElementById("dv"); document.getElementById("btn1").onclick = function(){ var timeId = setInterval(function(){ var current = div.offsetLeft; // 數字類型,沒有px var step = 9; // 每次移動像素 current += step; if(current<=400) { div.style.left = current+"px"; }else { clearInterval(timeId); } }, 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>

                              哎呀哎呀视频在线观看