Using background-attachment:fixed in safari on the ipad

前端 未结 7 500
误落风尘
误落风尘 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:48

    next solution in Css:

    body {
      background-image: url( ../images/fundobola.jpg );
      background-position: top center;background-repeat:no-repeat;
      background-size: 1900px 1104px;
      overflow: -moz-scrollbars-vertical;
      overflow-y: scroll;
    }
    

    --- not use---- (cause: scroll disable )

    position: fixed
    

    Resolved in Ipad and iPhone

提交回复
热议问题