2012-02-22 75 views

回答

0

这是一个黑客,但它的工作,额外的最低变焦周围正常大小的0.85,所以我们检查,如果用户缩小超过0.87:

window.addEventListener ('resize', function() { 
    if (document.documentElement.clientHeight/window.innerHeight <= 0.87){ 
     // this will run more than once while the user 
     // is zooming out close to the maximum level 
    } 
}, false); 

它不会工作变焦时被禁用(手机网站)。

相关问题