Fixed positioning will have small bugs in ios. How can fixed positioning be achieved through other methods?

  html5, question

This is the h5 page written by fixed positioning. It is not positioned correctly in iPhone. It will be in the middle when entering initially, and it will return to the fixed position after sliding the page. The style is good, and it is normal in computer browsers:

#footer{
 position: fixed;
 bottom: 5px;
 
 }

Find ways to fix bugs, or use other methods to achieve fixed results!

Use flex to write, Taobao is using this solution