powerdong / myProblems

我用到了,你可能用到
0 stars 1 forks source link

css-zoom实现移动端自适应 #15

Open powerdong opened 4 years ago

powerdong commented 4 years ago
        function resetSize(){
            if($(win).width()>=750){
                var winWidth = 2;
            }else{
                var winWidth = $(win).width() / 375;
            }
            $('.layout').css("zoom", winWidth).show();
        }