【Web前端】各類寬高的做用

前言 在 js 學習過程當中,被各類寬高弄的生活不能自理,在此記錄一下。html 內容提要 網頁可見區域寬: document.body.clientWidth; 網頁可見區域高: document.body.clientHeight; 網頁可見區域寬: document.body.offsetWidth (包括邊線和滾動條的寬); 網頁可見區域高: document.body.offsetHei
相關文章
相關標籤/搜索