离子2<离子含量>禁用滚动 [英] Ionic 2 <ion-content> disable scroll

查看:120
本文介绍了离子2<离子含量>禁用滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了几种禁用滚动的方法,包括使用CSS position:fixed,attribute overflow-scroll =false等,但所有方法都失败了。当我向下滑动时,按钮会向上移动,当我向上滑动时,按钮会向下移动,就像弹跳效果一样。
我可以知道这个问题的任何解决方案吗?非常感谢。

I've tried several methods to disable scroll, including using CSS position: fixed, attribute overflow-scroll="false" and etc, but all methods failed. When I swipe down, the buttons will go up and while I swipe up the buttons will go down, like bouncing effect. May I know any solutions to this issue? Thank you very very much.

推荐答案

使用离子3进行测试(应该对离子2起作用):

Tested with ionic 3 (should work on ionic 2):

<ion-content no-bounce></ion-content>

这篇关于离子2&lt;离子含量&gt;禁用滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆