Safari in ios8 is scrolling screen when fixed elements get focus

前端 未结 12 1087
失恋的感觉
失恋的感觉 2020-12-12 11:24

In IOS8 Safari there is a new bug with position fixed.

If you focus a textarea that is in a fixed panel, safari will scroll you to the bottom of the page.

T

12条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 11:52

    I just jumped over something like this yesterday by setting height of #a to max visible height (body height was in my case) when #b is visible

    ex:

        
    

    ps: sorry for late example, just noticed it was needed.

提交回复
热议问题