开发者

How to set Background image for iphone app in phonegap

I am new in phonegap development and i am developing one project for iphone application with use of phonegap framework.

开发者_StackOverflow

I am setting http://www.wallpaperbase.com/wallpapers/computer/mac/mac_8.jpg image as a background of my iphone application but its showing problem with image means image not properly displaying on my iphone Device like as given image example below.

Please solve my issue ASPS.

How to set Background image for iphone app in phonegap

Please check my code and let me know what's wrong in it.


You need to try this on line number 15 in index.html page-


<body style="background: url(mac_8.jpg) no-repeat;background-size: 100%;" >

then your app's background image will look like this -

How to set Background image for iphone app in phonegap

How to set Background image for iphone app in phonegap

only if you made changes in info.plist to support for landscape mode for iPhone

One important thing - take background image of size 320X480 or 640X940 (iPhone4)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜