iOS Safari - disable zoom

懵懂的女人 提交于 2019-12-13 12:28:32

问题


Im trying to disable a feature on mobile safari, but not really sure how to describe it.

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'

Can anyone help?


回答1:


Put this inside your head tag:

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


来源:https://stackoverflow.com/questions/11140417/ios-safari-disable-zoom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!