var phonewidth = parseint(document.body.offsetwidth);//取得浏览器可见宽度 var phonescale = phonewidth/1920;//除以网页设计宽度 document.body.style.zoom=phonescale; var ua = navigator.useragent; window.onload = function(){ document.body.style.zoom=phonescale; } window.onresize = function(){ document.body.style.zoom=phonescale; if(ua.indexof("msie") != -1||ua.indexof("windows") != -1||ua.indexof("macintosh") != -1) { if(document.fullscreen!=true){ location.reload(); } } }