Prevent background image from resize on scrolling

后端 未结 2 1455
挽巷
挽巷 2021-01-20 11:49

I have background image that is resizing a little bit when I scroll from the top on mobile devices. And it returns to its size when I scroll to the top agai

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-20 12:32

    Take a look at background: fixed no repeat not working on mobile.

    I believe the main difference is the z-index=0, try changing it to -10.

提交回复
热议问题