(function() {
document.addEventListener('DOMContentLoaded', function () {
var html = document.documentElement;
var windowWidth = html.clientWidth;
html.style.fontSize = windowWidth / 7.5 + 'px';
//等价于html.style.fontSize = windowWidth / 750 * 100 + 'px';
}, false);
})();
二倍图 750
转载于:https://www.cnblogs.com/Mr-Rshare/p/9881787.html