开发者

Image path folder

开发者 https://www.devze.com 2023-01-20 23:43 出处:网络
I have a problem, I put into my app a folder (not a group, then folder blue) where I put some image. I read from database an html text that was dis开发者_如何转开发play on a webviewpage. The problem i

I have a problem, I put into my app a folder (not a group, then folder blue) where I put some image. I read from database an html text that was dis开发者_如何转开发play on a webviewpage. The problem is when I try to display an image with a

<img src="file:///folder/subfolder/image.png">

the image wasn't display. Until I used a group (using full path) all works great now if I put the image of the folder nothing, not work :(


Your question isn't too clear, but you should try using relative instead of absolute directories. For example:

<img src="subfolder/image.png">

...if the image is in "folder/subfolder/image.png" and the HTML file in "folder".

0

精彩评论

暂无评论...
验证码 换一张
取 消