方案一
if(/Android/.test(navigator.appVersion)) {
window.addEventListener("resize", function() {
if(document.activeElement.tagName=="INPUT" || document.activeElement.tagName=="TEXTAREA") {
document.activeElement.scrollIntoView();
} }) }
方案二
("body").css({"width": ("body").css({"width": (window).width()+"px","height":$(window).height()+”px”});