【发布时间】:2018-12-27 06:03:54
【问题描述】:
我正在使用 Ionic FabButton 作为固定位置内容上方的浮动按钮。我的代码是:-
<ion-fab bottom right class="fab-image" (tap)="nextStep()">
<button ion-fab style="display: none;"></button>
<img src="assets/icon/custom/green_arrow.png" alt="">
</ion-fab>
fab-image 我的 CSS 如下:-
.fab-image{
position: fixed !important;
width: 62px;
}
现在它在 Android 上运行得很好:-
Click here to see how it's working on Android
在 iPhone 中它的工作原理是这样的:
Click here to see how it working on iPhone
问题是 iPhone 上的故障。 fab 按钮随着屏幕的移动而移动。任何想法如何解决这个问题?
【问题讨论】:
-
这是一个已知问题github.com/ionic-team/ionic/issues/7624我的项目中也有这个问题
标签: ionic-framework ionic-native floating-action-button