Images not showing in PhoneGap Build application

后端 未结 6 556
难免孤独
难免孤独 2021-01-12 06:41

I have recently decided to start using PhoneGap Build to create apps using web technologies. Please note that I\'m using PhoneGap Build not PhoneGap and so I don\'t maintain

6条回答
  •  萌比男神i
    2021-01-12 07:17

    May be relevant to devs using gulp to build their applications: if images aren't showing up, check out where the images are being placed within www after a gulp build.

    In my case PhoneGap was searching for images in /www/css folder. Changing the clean and images tasks to reflect that solved my issue.

    I was attempting to set a background-image with CSS; it works now using:

    background-image: url("img/background.jpg")
    

提交回复
热议问题