Strange z-index behavior with scrollbars under Chrome

后端 未结 2 1334
难免孤独
难免孤独 2021-02-02 08:48

Using z-index CSS property on \'fixed\' positioned elements gives me a strange behavior under Chrome.

When Firefox and Opera browsers give me the awaited result, Chrome

2条回答
  •  天涯浪人
    2021-02-02 09:29

    You may try to add -webkit-transform: translate3d(0, 0, 0). It solves my similar problem happened in mobile chrome.

提交回复
热议问题