是否可以在背景图像上启用离子滚动?

Is it possible to enable ion-scroll on background image?

我想知道是否有一种方法可以滚动到背景图像的其余部分,因为我一直在使用 background-size : cover; 并且我使用的背景比屏幕大得多。

您可以将其与 CSS class 或 ion-content 标签上的样式一起应用,将背景大小的高度编辑为像素大小(背景大小:100% 902px),例如:

<ion-content style="background: url('../assets/img/bg.jpg') no-repeat;background-size: 100% 902px;" padding>