可能大家发现自己制作的手机端页面,默认打开的时候并不是在理想的缩放状态下。
遇到这样的问题,需要在head标签下,添加meta解决。
代码如下:
<meta name=”viewport” content=”width=device-width; initial-scale=1.0; minimum-scale=1.0; maximum-scale=2.0″/> //控制默认缩放大小、最小缩放大小、最大缩放大小。通过这个可以设置用户的最大和最小缩放程度。 <meta name=”MobileOptimized” content=”320″/> //表示为移动设备的默认显示宽度为320px,此参数目前使用与安卓手机设备 <meta name=”Iphone-content” content=”320″/> //表示为Iphone设备的默认显示宽度为320px <meta name=”format-detection” content=”telephone=no” /> //表示手机模式设置为启用。
其他相关参考链接:
//www.gxlcms.com/article/121531.htm
//www.gxlcms.com/article/121515.htm
//www.gxlcms.com/article/121524.htm
Copyright © 2019- oldu.cn 版权所有 浙ICP备2024123271号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务