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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                >[success] # DOM -- 元素大小和滾動 1. **clientWidth**:contentWith+padding(不包含滾動條) 2. **clientHeight**:contentHeight+padding 3. **clientTop**:border-top的寬度 4. **clientLeft**:border-left的寬度 5. **offsetWidth**:元素完整的寬度 6. **offsetHeight**:元素完整的高度 7. **offsetLeft**:距離父元素的x 8. **offsetHeight**:距離父元素的y 9. **scrollHeight**:整個可滾動的區域高度 10. **scrollTop**:滾動部分的高度 ![](https://img.kancloud.cn/ad/7e/ad7e4d0088f562e36782f59390baacc6_749x675.png) ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> .box { height: 100px; overflow: scroll; width: 100px; } </style> </head> <body> <div class="box"> 測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試測試 </div> <script> const boxDom = document.querySelector('.class') const height = boxDom.clientHeight // contentHeight+padding(不包含邊框) const width = boxDom.clientWidth // contentWith+padding(不包含滾動條,不包含邊框) const top = boxDom.clientTop // border-top的寬度 const left = boxDom.clientLeft // border-left的寬度 const ensembleWidth = boxDom.offsetWidth // 元素完整的寬度 const ensembleHeight = boxDom.offsetHeight // 元素完整的高度 const x = boxDom.offsetLeft // 距離父元素的x const y = boxDom.offsetHeight // 距離父元素的y const sH = boxDom.scrollHeight // 整個可滾動的區域高度 const sT = boxDom.scrollTop // 滾動部分的高度 </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>

                              哎呀哎呀视频在线观看