0

我有一个使用滑块的应用程序,它在 PC 上运行良好,但在 iPad 上,当我拖动滑块时,有时不是移动滑块,而是移动整个页面。我怎么能阻止它?

4

1 回答 1

2

Sliders don't work when the dragging action is needed to move the page around. You can prevent this by disabling the ability to zoom in. Use the iOS-specific meta tags for this.

<meta name="viewport" content ="width = device-width, user-scalable = no">

The documentation for this is here.

于 2013-06-19T14:50:48.990 回答