vue h5移动端禁止缩放
2024-09-02 17:38:20
在index.html里面写
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
ios中还要添加:
<script>
window.onload = function() {
document.addEventListener('touchstart', function(event) {
if (event.touches.length > 1) {
event.preventDefault()
}
})
document.addEventListener('gesturestart', function(event) {
event.preventDefault()
})
}
</script>
最新文章
- django(3) 一对多跨表查询、ajax、多对多
- 解决:Error: JAVA_HOME is not defined correctly
- AJAX总结
- ldap实现用户认证
- mysql安装tcmalloc
- createObjectURL方法 实现本地图片预览
- 与众不同 windows phone (11) - Background Task(后台任务)之警报(Alarm)和提醒(Reminder)
- Redis集群之优化系统参数
- 获得32位UUID字符串和指定数目的UUID
- OutOfMemoryError 到底能不能被捕获?
- Windows代替touch命令
- Python os.removedirs() 和shutil.rmtree() 用于删除文件夹
- JVM总结-反射
- Spring 属性注入(三)AbstractNestablePropertyAccessor
- POJ 2965&;&;1753
- Python基本语法_强制数据类型转换
- 洛谷2530(codevs2098)化工厂装箱员
- 如何将int整型转换成String字符串类型
- 疯狂JAVA——第五章 面向对象(上)
- GIS-009-Cesium 使用
热门文章
- idea 2019.3 最新版破解教程
- JavaWeb系统(增删改查、多条件查询功能)
- P1559 运动员最佳匹配问题 by hyl 天梦
- 「扫盲」Elasticsearch
- 一张图快速上手Xmind思维导图
- SqlServer分页存储过程(多表查询,多条件排序),Repeater控件呈现数据以及分页
- java中implements和extends的区别
- 第二次作业hzw
- SpringBoot项目的parent依赖和配置文件*.properties、*.yml详解
- React的环境搭建以及脚手架的安装