mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化高度
This commit is contained in:
parent
807b17f075
commit
4988719d41
@ -1794,7 +1794,12 @@ vc 校验 工具类 -method
|
|||||||
|
|
||||||
//浏览器可见高度
|
//浏览器可见高度
|
||||||
let _minHeight = document.documentElement.clientHeight;
|
let _minHeight = document.documentElement.clientHeight;
|
||||||
_vcPageHeight.style.minHeight = _minHeight + 'px';
|
let _scollHeight = document.body.scrollHeight;
|
||||||
|
|
||||||
|
if(_scollHeight < _minHeight){
|
||||||
|
_scollHeight = _minHeight
|
||||||
|
}
|
||||||
|
_vcPageHeight.style.minHeight = _scollHeight + 'px';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user