元のjsはブラウザウィンドウと要素の幅の高い共通の方法の集合を取得します
712 ワード
: document.documentElement.clientWidth || document.body.clientWidth;
: document.documentElement.clientHeight || document.body.clientHeight;
+ : document.body.offsetWidth ;
+ : document.body.offsetHeight ;
: document.body.scrollWidth;
: document.body.scrollHeight;
:document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
:document.body.scrollLeft || document.documentElement.scrollLeft ;
:window.screenTop;
:window.screenLeft;
:obj.offsetWidth;
:obj.offsetHeight;
:obj.offsetTop;( )
:obj.offsetLeft;( )