html5 - 刚接触移动端开发,请教下移动端使用vh,vw单位做布局,点击输入框后键盘弹出会挤压内容怎么处理?
PHP中文网
PHP中文网 2017-04-17 14:54:03
0
2
868

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
黄舟

The middle part is made scrollable

刘奇
var h = document.body.scrollHeight;
    window.onresize = function(){
        if (document.body.scrollHeight < h) {
            document.getElementsByTagName("nav")[0].style.display = "none";
        }else{
            document.getElementsByTagName("nav")[0].style.display = "block";
        }
    };
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template