【发布时间】:2017-03-13 06:35:22
【问题描述】:
我是 Ionic 2 的新手,我的应用程序中的图像存在一些问题。 在网上搜索我了解到图像必须放在应用程序内的 /src/assets 文件夹中。 (正确吗?)
图像使用ionic serve 和ionic lab 命令可以正常工作,但在模拟设备中或在 iPad 上使用 Ionic View 时,它们不会显示!
我在代码中引用图片:
<img src="../assets/img/ringing.png" class="circle_icons">
我该如何解决这个问题?
(下面是一些问题的截图)
Screenshot of the simulator with problems displaying images
Screenshot of the ionic serve without problems displaying images
【问题讨论】:
标签: android ios image ionic-framework ionic2