문제

I am making an app on a Samsung TV SDK and I am tryiing to display an image using background-image on CSS but it's not being honored on 2011 model/emulator. I know I can use on html but I need to put it on my js file. How can I do that? Any alternate solutions? Any help will be greatly appreciated! Thanks!

도움이 되었습니까?

해결책

I was able to resolve this issue and to share the answer... in able to use image on js file use this:

var image_name = "image.png";
$('#Sceneid').html('<img src="' + image_name + '"/>');

That's it! HTML 5 won't work on 2011 models.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top