Keeping the body background image fixed on the iphone

ghadam

New Member
I have been trying for days to get the background image on my JQM iPhone app to remain fixed and to have the content scroll above it.Having research many of the answers given I have the following piece of code:\[code\]body { background-image:url(images/background.jpg); background-attachment:fixed;}\[/code\]Using this achieves the desired effect when previewing the app in Safari on my desktop however when I view the app on my iPhone(4s - 6.1.3) the background scrolls with the content. I have tried many different methods to achieve what I require but so far I have not been successful. As the majority of apps use this method I am sure it is something very simple which I am missing.Any advice would be gratefully received. Thanks.
 
Back
Top