Friday 15 August 2014

jquery - Swipe contents while background remains same -


I'm trying to create a mobile website using jQuery Mobile. I need the background image remains the same, that only need to be changed swipe the content of a page. And I want pagination for each page. Is it possible to make a background stick for the material?

Please help, thank you.

Czech demo

Set background image, body and to hTML here < To remove background of code> .ui-page

,

  html, body {float: left; Margin: 0; Padding: 0; Width: 100%; Height: 100%; Background: left fixed URL (https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBKVQ09sUfIof_APbNRFFNG7qY1ZTAQUOIEI16jIiO7GlE8TQNdjKHS_mRFIoXto-c-6TbFASMsC9uYf8KbqpB8B18DrjoykWWcLtjhQUxSQGPS7QipgC374OyPJhW-8yAw0Yu5gbSmzY/s1600/desktop-wallpaper-1600x1200.jpg) does not repeat the critical ;! -WebKit-Background-Size: Cover! Important; -MOZ-BACKGROUND-SHAPE: Cover! Important; -O-Background-Size: Cover! Important; Background size: Cover! Important; } .ui- page, .ui- page active {background: none! Important; }    

No comments:

Post a Comment