CSS background stretches to fill height in iOS but there is white space on scroll

前端 未结 7 1703
暗喜
暗喜 2021-02-06 18:57

this CSS gets my background to fill 100% of the screen height in iOS but there is a minor problem - when you scroll down there is initially white space, then when you release yo

7条回答
  •  半阙折子戏
    2021-02-06 19:42

    Why not use background-size: cover. That way the background image will always fill its attached div or body tag

提交回复
热议问题