js自动识别移动客户端,并适配
作者:互联网观察 发布时间:May 12, 2017 分类:互联网观察
自动识别移动客户端,并适配
<script>
var inw = window.innerWidth;var inh = window.innerHeight;
var o = window.orientation;
var w = window.screen.width;
if((navigator.userAgent.indexOf("iPad") != -1 && o != '0') || (navigator.userAgent.indexOf("iPad") != -1 && inw>inh)){
document.write('<meta content="width=device-width, initial-scale=0.8, maximum-scale=1.0, user-scalable=0" name="viewport">');
}else{
document.write('<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">');
}
</script>
相关文章
- 本地大模型推理交流群
- 《北京市属医院护士规范化培训指南(下册)》PDF
- v100 显卡 安装funasr最新版本
- 百万理财私人客户名单
- 使用v100+vllm推理qwenasr
- A Turning Tide: The Yangtze River’s Recovery After Decades of Degradation
- pve9无法运行部分lxc
- uv 使用国内源文
- 为什么我们要下载抖音无水印视频?
- indextts 使用vllm提速
文档信息
- 版权声明:自由转载-非商用-非衍生-保持署名 | Creative Commons BY-NC-ND 3.0
- 原文网址:https://www.tianmeng.org/Internet-Observation_443/443/
- 最后修改时间:2017年05月12日 10:02:31
当前暂无评论 »