|
|
@@ -9,6 +9,18 @@
|
|
|
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_452262_tnqskb835gs98uxr.css">
|
|
|
{{ HEAD }}
|
|
|
<script>
|
|
|
+ var reCreateStyle = function() {
|
|
|
+ var style;
|
|
|
+ if(style=document.getElementById("forhtml")){
|
|
|
+ style.parentNode.removeChild(style);
|
|
|
+ }
|
|
|
+ style = document.createElement("style");
|
|
|
+ style.id="forhtml";
|
|
|
+ document.head.appendChild(style);
|
|
|
+
|
|
|
+ var fontSize = 100.00 * (parseFloat(document.documentElement.clientWidth,10)) / 750.00;
|
|
|
+ style.appendChild(document.createTextNode("html{font-size:"+fontSize+"px !important;}"));
|
|
|
+ };
|
|
|
var _hmt = _hmt || [];
|
|
|
(function (w, d) {
|
|
|
if (/(MSIE)|(Trident)/.test(w.navigator.userAgent)) {
|
|
|
@@ -29,25 +41,26 @@
|
|
|
var cnzz_protocol = (("https:" == d.location.protocol) ? " https://" : " http://");
|
|
|
d.write(unescape("%3Cspan id='cnzz_stat_icon_1267002346'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s19.cnzz.com/z_stat.php%3Fid%3D1267002346%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
|
|
|
if (/(iPhone|iPad|Opera Mini|Android.*Mobile|NetFront|PSP|BlackBerry|Windows Phone)/ig.test(w.navigator.userAgent)) {
|
|
|
- let meta1 = d.createElement('meta')
|
|
|
+// let meta1 = d.createElement('meta')
|
|
|
// let meta2 = d.createElement('meta')
|
|
|
- let head = d.getElementsByTagName('head')[0]
|
|
|
- meta1.name = 'viewport'
|
|
|
- meta1.content = 'width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'
|
|
|
+// let head = d.getElementsByTagName('head')[0]
|
|
|
+// meta1.name = 'viewport'
|
|
|
+// meta1.content = 'width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'
|
|
|
// meta2['http-equiv'] = 'Cache-Control'
|
|
|
// meta2.content = 'no-siteapp'
|
|
|
- head.appendChild(meta1)
|
|
|
+// head.appendChild(meta1)
|
|
|
// head.appendChild(meta2)
|
|
|
- var docEl = d.documentElement
|
|
|
+// var docEl = d.documentElement
|
|
|
var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
|
|
|
var recalc = function () {
|
|
|
- var clientWidth = docEl.clientWidth
|
|
|
- if (!clientWidth) return
|
|
|
- if (clientWidth >= 750) {
|
|
|
- docEl.style.fontSize = '100px'
|
|
|
- } else {
|
|
|
- docEl.style.fontSize = 100 * (clientWidth / 750) + 'px'
|
|
|
- }
|
|
|
+// var clientWidth = docEl.clientWidth
|
|
|
+// if (!clientWidth) return
|
|
|
+// if (clientWidth >= 750) {
|
|
|
+// docEl.style.fontSize = '100px'
|
|
|
+// } else {
|
|
|
+// docEl.style.fontSize = 100 * (clientWidth / 750) + 'px'
|
|
|
+// }
|
|
|
+ reCreateStyle();
|
|
|
}
|
|
|
// recalc()
|
|
|
if (!d.addEventListener) return
|