Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.3k views
in Technique[技术] by (71.8m points)

ionic6 ion-img在android7真机上不显示

ionic开发项目,使用ion-img在部分设备上(目前发现是Android7)不显示,同样的图片换成img标签就没有问题,可以显示。求各位大神解答。

代码如下:

<div class="btns-view">
    <div class="qr_code-view" (click)="showQRCode()">
        <ion-img src="assets/qr_code.png"></ion-img>
        <div>患者身份认证码</div>
    </div>
    <div class="call-view" (click)="onCallClick()">
        <ion-img src="assets/call.png"></ion-img>
        <div>拨打护士电话</div>
    </div>
</div>

Android10查看效果
image.png

Android7查看效果
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

没有使用native的话,就客户以用chrome调试看具体问题


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...