问题:由于pc端web网页和app端的用户协议和隐私协议访问是同一连接,word文档转html网页在web访问正常,但是在app端访问后显示的字体超级小(字体可双手放大)。项目经理要求app打开第一时间显示正常字体。
解决办法如下:
在word文档转html网页<head>中加入下面代码即可:
<head>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<meta content="email=no" name="format-detection" />
</head>
注意:加入上述代码后app端打开该网页字体可显示html设置的字体,但无法手动放大或缩小字体。