简体   繁体   English

iOS Safari - 禁用缩放

[英]iOS Safari - disable zoom

Im trying to disable a feature on mobile safari, but not really sure how to describe it. 我试图禁用移动safari上的功能,但不确定如何描述它。

I am adding in a Jquery slider which supports the swipeleft() and swiperight() touch events. 我添加了一个Jquery滑块,它支持swipeleft()swiperight()触摸事件。

As such I want to disable the feature whereby when you swipe to the edge of a page, it shows the grey 'apple linen background' behind the site. 因此,我想禁用此功能,当您滑动到页面边缘时,它会在网站后面显示灰色的“苹果亚麻背景”。

This is interfering with the user experience and I want to fix my site in the center, so the user cannot pull it around within the 'browser space' 这会干扰用户体验,我想在中心修复我的网站,因此用户无法在“浏览器空间”内将其拉出来

Can anyone help? 有人可以帮忙吗?

把它放在头部标签内:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM