Image is not showing in app


#1

I have some images under www/img/maple/. It works fine when testing in browser with ionic serve.

But it doesn’t show after compiled to APK. Any recommendation?

It’s background image using class.

background: url(/img/maple/c1.jpg) center center no-repeat;`


#2

You need to make the URL path relative to the CSS file … so it will probably be

../img/maple/c1.jpg


#3

Thanks. It solved the problem