Fixed floating problem of sliding page in IOS

This phenomenon is no problem on Android phones, but the fixed part of the Apple phone will float when sliding.

<div style="height: 100%; overflow: auto;">I am the content</div>
<div style="position: fixed">我是fixed</div>

As the code shows,

The content part gives a height: 100%; overflow: auto;

The fixed part can be added according to your needs


If there is still a problem, put the part that needs to be fixed to the outermost, that is, the subordinate of the body can solve the problem


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325573719&siteId=291194637