解决方案:手动在head中插入style,给html设置font-size,并使用 !important 增加优先级
(function (doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
var style;
if(style=document.getElementById("hackUcRem")){
style.parentNode.removeChild(style);
}
style = document.createElement("style");
style.id="hackUcRem";
document.head.appendChild(style);
style.appendChild(document.createTextNode("html{font-size:" + 100 * (clientWidth / 320) + "px !important;}"));
docEl.style.fontSize = 100 * (clientWidth / 320) + 'px';
};
recalc();
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);