问题
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