position: fixed doesn't work on iPad and iPhone

后端 未结 15 2136
一整个雨季
一整个雨季 2020-11-22 16:16

I have been struggling with fixed positioning in iPad for a while. I know iScroll and it does not always seem to work (even in their demo). I also know that Sencha has a fix

15条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 16:42

    In my case, it was because the fixed element was being shown by using an animation. As stated in this link:

    in Safari 9.1, having a position:fixed-element inside an animated element, may cause the position:fixed-element to not appear.

提交回复
热议问题