简体   繁体   中英

Samsung smart tv emulator doesn't recognise .jpg image

I used this html tag as follows:

<img src="app\images\1.jpg" height="100px" width="100px">

but the emulator doesn't show the image rather shows a question mark and debugger gives an error that requested url was not found on this server, whereas the file is very much there in the location.

Is there another way to insert image in samsung tv smart app?

URI中的“目录”分隔符是正斜杠,而不是反斜杠。

have you tried this?

<img src="app/images/1.jpg" height="100" width="100">

or

<img src="/app/images/1.jpg" height="100" width="100">

see the slashes / in stead of \\ ?

On a server its allways /.

用这个

<img src="app/images/1.jpg" height="100px" width="100px">

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM