iOS Safari-禁用缩放 [英] iOS Safari - disable zoom
本文介绍了iOS Safari-禁用缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试禁用移动Safari上的功能,但不确定如何描述它.
Im trying to disable a feature on mobile safari, but not really sure how to describe it.
我要添加一个支持swipeleft()
和swiperight()
触摸事件的Jquery滑块.
I am adding in a Jquery slider which supports the swipeleft()
and swiperight()
touch events.
因此,我想禁用该功能,当您滑动到页面边缘时,该功能会在网站后面显示灰色的苹果亚麻背景".
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'
任何人都可以帮忙吗?
推荐答案
将其放在您的head标签内:
Put this inside your head tag:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
这篇关于iOS Safari-禁用缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文