ion-content形成上下结构,上面固定,下层可滑动
首先要设置ion-content不可滑动:<ion-content class="has-subheader" scroll="false"></ion-content>
其次在ion-content中,使用ion-scroll,并加上css:<ion-scroll direction="y" style="position: absolute; top:110px; bottom: 0; left: 0; right: 0;"></ion-scroll>
这样就可以实现滑动时ion-content里边的内容形成上下结构,不在ion-scroll标签里边的内容固定不动,ion-scroll里边的内容可以滚动,且不会遮挡上方元素。
ion-scroll水平滑动时在Android中无效
解决办法:在ion-scroll标签里加上overflow-scroll="false";