简体   繁体   English

三星智能电视模拟器无法识别.jpg图像

[英]Samsung smart tv emulator doesn't recognise .jpg image

I used this html tag as follows: 我使用此html标记,如下所示:

<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. 但是仿真器不显示图像而是显示一个问号,调试器给出错误,指出在此服务器上找不到请求的url,而该文件位于该位置。

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">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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