position: fixed doesn't work on iPad and iPhone

后端 未结 15 2137
一整个雨季
一整个雨季 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:41

    using jquery i am able to come up with this. it doesnt scroll smooth, but it does the trick. you can scroll down, and the fixed div pops up on top.

    THE CSS

    
    

    THE HTML

    fooo

    THE jQUERY

    
    

    Finally we want to determine if the ipod touch in landscape or portrait mode to display accordingly

    
    

提交回复
热议问题