javascript - Bring an element to top of the page even if the page does not scroll -
Background: Assume that you have a simple page A logo and title only and a paragraph & lt; Img src = "http://blog.stackoverflow.com/wp-content/uploads/StackExchangeLogo1.png" & gt; & Lt; H1 & gt; Foo Bar & lt; / H1> & Lt; P & gt; ABC12345 & lt; / P & gt; It looks like But that does not work even when the page does not overflow < P> Note: Please note To create an overflow In addition & lt; Br / & gt; is not the way to add, it can be done in that way, but this is a very simple solution Why is it needed? For this one form for mobile devices, the simple requirement is to take the first field at the top of the page and hide the logo (one they want to see it), so do not care Does not use jQueryMobile for this particular task. If you want the user to be able to scroll and view the logo, then the logo body should be within the top bounds of the tag, because anything outside that tag wi