Hi. I want to show an image in my HTML5 code. Here's the code:
<div class="card"><img src="pics/back.png"/></div>
The image is not displayed, so I put the whole path like this:
<div class="card"><img src="file:///android_asset/www/pics/back.png"/></div>
But the problem persists. I'm using Phonegap also.
Any idea please?
Thank you so much.
我只是将图像back.png移到了文件夹“ WWW”下,它在下面的代码中工作正常:
<div class="card"><img src="back.png"/></div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.