iframe size with CSS on iOS

前端 未结 4 1491
旧巷少年郎
旧巷少年郎 2020-11-27 20:29

There\'s an iframe, which basically has more content than fits into the frame. The sizing of the frame is based on the browser screen size and lets the overflow scroll, whic

4条回答
  •  误落风尘
    2020-11-27 21:07

    If iOS Safari is displaying your iframe content from a different origin than expected (i.e. it is shifted over by some pixels), try adding scrolling="no" as an attribute to the iframe. This should prevent it from automatically fitting its content.

    More here.

提交回复
热议问题