Position:fixed failure problem on iOS

Source: Internet
Author: User

Mobile phone side of the trick is a lot AH ~ ~ ~!

Recently encountered a fixed positioning of the bottom navigation on iOS was bounced out

At this time the heart 1w+ a grass mud horse ran over ~~~~~~~~

Directly on the solution:

<div class= "main_comment" > "" "" "" "</div><div class=" Commentbar "> Reply box </div>
. main_comment{  width:100%;  Position:absolute;  Overflow-y: auto;  top:0;  bottom:0;  -webkit-overflow-scrolling:touch;   /* This sentence is to slide smoother */}.commentbar{  width:100%;  Position:absolute;  bottom:0;  left:0;  Background: #fff;  padding:5px;  z-index:99;}

 

Here are used absolute to solve, to achieve the desired effect.

 

  

Position:fixed failure problem on iOS

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.