mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
打印浏览器高度
This commit is contained in:
parent
d79a391cb7
commit
f0a171c16d
@ -1791,7 +1791,6 @@ vc 校验 工具类 -method
|
|||||||
//全屏处理 这个后面可以关掉
|
//全屏处理 这个后面可以关掉
|
||||||
(function(vcFramework){
|
(function(vcFramework){
|
||||||
let _vcPageHeight = document.getElementsByClassName('vc-page-height')[0];
|
let _vcPageHeight = document.getElementsByClassName('vc-page-height')[0];
|
||||||
|
|
||||||
//浏览器可见高度
|
//浏览器可见高度
|
||||||
let _minHeight = document.documentElement.clientHeight;
|
let _minHeight = document.documentElement.clientHeight;
|
||||||
let _scollHeight = document.body.scrollHeight;
|
let _scollHeight = document.body.scrollHeight;
|
||||||
@ -1800,6 +1799,7 @@ vc 校验 工具类 -method
|
|||||||
_scollHeight = _minHeight
|
_scollHeight = _minHeight
|
||||||
}
|
}
|
||||||
_vcPageHeight.style.minHeight = _scollHeight + 'px';
|
_vcPageHeight.style.minHeight = _scollHeight + 'px';
|
||||||
|
console.log('是否设置高度',_vcPageHeight.style.minHeight);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user