If you enter http://gizeto.se/app_yellow/index.html , you will see that iScroll scrolls the entire page. You can see the scroller lying above the header and footer. The scroller should scroll only the content , but not include the header and footer.
I will not do this work because I need a fixed footer without using a position: fixed - that still does not work, for example, Android 2.1
I am using iScroll 4, and my JS code is inside my data-role = "content" div:
$(document).ready(function() { var myScroll = new iScroll('content'); $(window).bind('resize', function () {
The data-role = "page" element has the data-iscroll = "enable" attribute, and my html code for the scrollable part:
<div data-iscroll="scroller" class="scroller"> <div data-iscroll="scroller"> <h3>VÀlkommen</h3> <div style="text-align:center;"> <img src="images/video.png" style="width: 100%; height: 100px;" class="rounded" title="" /> </div> <br /> Ticker AB Àr en arkitekturbyrÄ som arbetar inom ett brett fÀlt av projekt, frÄn stadsplanering till bostÀder via kontor och handel. VÄr styrka ligger i vÄra idéer och vÄr förmÄga att hitta nya, ofta ovÀntade lösningar som stÀrker platser och ökar fastigheters vÀrde. <br /><br /> Vi följer den globala utvecklingen inom hÄllbar samhÀllsutveckling och arbetar aktivt för att integrera hÄllbara lösningar i alla vÄra projekt. </div> </div>
Why does iScroll scroll a page with holes, not just the contents, so that my footer can remain fully fixed without using a position: fixed, which is not yet supported in all mobile browsers.
source share