Position Fixed doesn't work in Chrome

前端 未结 2 1275
难免孤独
难免孤独 2021-01-03 09:32

I\'m creating these overlay previous and next arrows, like the ones on this website - http://www.usatoday.com

And the problem I\'m getting is in Chrome, the arrows w

相关标签:
2条回答
  • 2021-01-03 09:53

    According to this article http://css-tricks.com/forums/topic/fixed-position-z-index-does-not-work-in-chrome/ you can't use Z-index on background images which could be part of the issue there's an example on that post that may help you it's also here: http://codepen.io/anon/pen/iKljy ( you have to sign up for an account to see it, but it looks like it could help you).

    0 讨论(0)
  • 2021-01-03 10:05

    I used cjspurg method and it worked. Thanks again!

    -webkit-backface-visibility: hidden; 
    -webkit-transform: translateZ(0);
    
    0 讨论(0)
提交回复
热议问题