|
@@ -10,12 +10,6 @@
|
|
|
var currentFontSize = (width/designWidth)*baseFontSize;
|
|
|
// document.querySelector('html').style.fontSize = currentFontSize+'px';
|
|
|
document.documentElement.style.fontSize = currentFontSize+'px';
|
|
|
- // const vp = document.createElement('meta');
|
|
|
- // vp.name = 'viewport';
|
|
|
- // vp.content = `initial-scale=${currentFontSize * baseFontSize}, user-scalable=no, width=device-width`;
|
|
|
- // var m = document.getElementsByTagName('meta')[0];
|
|
|
- // m.parentNode.insertBefore(vp, m);
|
|
|
- // alert(width+"-"+currentFontSize+'-'+document.documentElement.style.fontSize)
|
|
|
}
|
|
|
// 页面大小发生变化时
|
|
|
window.onresize = function(){
|