Fixed background cover becomes zoomed in mobile view

前端 未结 3 1342
难免孤独
难免孤独 2021-02-14 10:06

I\'m using a fixed background cover for my website here: http://www.datisdesign.com

Every page has a big header image, but in small devices such as mobiles, the cover im

3条回答
  •  无人共我
    2021-02-14 10:43

    I solved my problem by limiting the capability to the large tablet screen size.

    @media screen and (max-width: 992px) {
        #parallax {
            background-attachment: scroll;
        }
    }
    

提交回复
热议问题