开发者

uiwebview baseurl directory

开发者 https://www.devze.com 2023-01-10 18:01 出处:网络
I have a directory images with lots of sub folders. 100,101 etc., How should my img tag and the uiwebview\'s base URL should be ?

I have a directory images with lots of sub folders. 100,101 etc.,

How should my img tag and the uiwebview's base URL should be ?

<img href="/101/1000/238.jpg"> </开发者_运维问答img>?


Say you have the following file structure:

index.html
101/a.jpg
102/b.jpg

The index.html can contain relative path to the images, e.g.

<img src="101/a.jpg" />

I hope that answers you question. If not, please give more detail about what you want to do, e.g. do you want to load a web page in the public domain, such as http://www.somesite.com?

0

精彩评论

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