Weird webkit issue with position: fixed

后端 未结 4 986
南笙
南笙 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:40

    One method of solving this issue is to force the fixed-position elements into their own render layers. This can be done by applying a 3d transform, for example:

    .navbar-fixed-top {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    

    Hope this helps.

提交回复
热议问题