Using background-attachment:fixed in safari on the ipad

前端 未结 7 483
误落风尘
误落风尘 2020-11-30 05:51

I\'m looking to recreate an effect similiar to the popular science app. Basically have one big background image and then have HTML/CSS layer on top of that. When the user sc

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 06:33

    I believe you can place the background image in a div and set the z-index to appear behind other content. Afterwards you can use javascript to fix the position of the div which contains the background image.

提交回复
热议问题