Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们如何禁用ion-slidesIonic 4 中的缩放功能,我已经尝试zoom="false"在元素上添加输入ion-slides但它不起作用,当我在屏幕上双击时它仍在缩放图像并破坏设计。
ion-slides
zoom="false"
您可以在 ts 文件的 ion-slides 选项中使用以下代码禁用缩放。
slideOpts = { zoom: false }; <ion-slides [options]="slideOpts"> <ion-slide>..</ion-slide> </ion-slides>