Mobile End Position:fixed Summary

Source: Internet
Author: User

Fixed on the mobile side is a pit, compatibility is a need.

iOS bug more, see HTTPS://GITHUB.COM/MAXZHANG/MAXZHANG.GITHUB.COM/ISSUES/2

The author suggested that we better use the fixed, iOS with Iscroll to pits better


For a fixed number of small details can also refer to:

Https://github.com/maxzhang/maxzhang.github.com/issues/11

Examples mentioned in: Http://output.jsbin.com/omaCOSir/latest

The Layout method is:

It is not clear why to use relative to represent the header and footer, although the real function is fixed.


If fixed does not support, there is one I personally think very cottage method, is to use absolute,onscroll time to calculate the $ (window). scrolltop (), but this method first in the display is not perfect, the point is that sometimes the calculation is the decimal point, So there are 1 px (which can be -1px), and there is frequent calculation and re-rendering.


Android 4.4.2 Some of the machine can be supported, some of the support is not enough, rendering time does not give force, but can only be rendered, turn on hardware acceleration better


There's no better way, but there's no way: Iscroll

Mobile End Position:fixed Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.