在完全模式 - ionic3的触摸图像之前,离子图像不显示在负载上 [英] ionic images are not show on load until touch image for fullmodal - ionic3

查看:81
本文介绍了在完全模式 - ionic3的触摸图像之前,离子图像不显示在负载上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<ion-content>
<ion-slides class="image-slider" loop="false" slidesPerView="1">
<ion-slide *ngFor="let item of imageList">
<ion-thumbnail>
<ion-img [src]="item" class="thumb-img" (click)="presentModal(item)"></ion-img>
</ion-thumbnail>
</ion-slide>
</ion-slides>
</ion-content>

我遇到了一个非常奇怪的问题。

I got a very strange problem.

如何解决?触摸图像后显示全模式图像

How to fix it? after touch image for fullmodal image to show

推荐答案

ion-img 是用于在使用 virtualScroll 时缓存图像。它不是一个独立的组成部分。由于给定代码中没有virtualScroll,您应该使用html img 标记。

ion-img is used to cache images when virtualScroll is being used. It is not an independent component. Since there is no virtualScroll in the given code, you should be using html img tag.

使用 img

<img [src]="item" class="thumb-img" (click)="presentModal(item)"/>

参考:文档

这篇关于在完全模式 - ionic3的触摸图像之前,离子图像不显示在负载上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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