Weird webkit issue with position: fixed

后端 未结 4 978
南笙
南笙 2021-01-12 07:28

http://workshop.wpcoder.com/daniel/tvexperts/

In Chrome, if you click \"Production\" and then \"Contact\" the position: fixed header disappears, but comes back when

4条回答
  •  自闭症患者
    2021-01-12 07:35

    Fixed position elements are lifted to a composited layer in both Blink and WebKit, by default. There is no need to lift fixed position elements in Safari, as they are already composited.

    What you need to do is the reverse. You need to lift all non fixed:position elements by using translateZ(0):

    http://newscentral.exsees.com/item/528d72c6d22fab46e4eb18e5cb8fece0-0d5a1eca143f58f995dc015e265514cb

提交回复
热议问题