Let's go

窗口收缩到一定程度出现滚动条

js:

     Resize: function () {
            var width = $(window).width(),
            height = $(window).height();
            $("body").css({
                "width": width,
                "height": height,
                "overflow": "hidden"
            });
            if (width <= 1186) {
                $("body").css({
                    "overflow": "auto"
                });
            }
        },

 

window.onresize = function () {
        mainUtil.WindowsSize();
}
window.onload = function () {
        mainUtil.WindowsSize();
}

 

posted @ 2018-07-11 17:25  chenze  阅读(614)  评论(0编辑  收藏  举报
有事您Q我