Authored by ccbikai(👎🏻🍜)

微信字体大小

@@ -28,6 +28,14 @@ @@ -28,6 +28,14 @@
28 (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window); 28 (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);
29 </script> 29 </script>
30 {{/if}} 30 {{/if}}
  31 +
  32 + {{#if isWechat}}
  33 + {{!--Android机器页面不再受到用户字体缩放强制改变大小 http://m.blog.csdn.net/article/details?id=51275080 --}}
  34 + <script type="text/javascript">
  35 + (function(){if(typeof(WeixinJSBridge)=="undefined"){document.addEventListener("WeixinJSBridgeReady",function(a){setTimeout(function(){WeixinJSBridge.invoke("setFontSizeCallback",{fontSize:0},function(b){})},0)})}else{setTimeout(function(){WeixinJSBridge.invoke("setFontSizeCallback",{fontSize:0},function(a){})},0)}})();
  36 + </script>
  37 + {{/if}}
  38 +
31 {{#if devEnv}} 39 {{#if devEnv}}
32 {{#if localCss}} 40 {{#if localCss}}
33 <link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/common.css"> 41 <link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/common.css">