iframe size with CSS on iOS

前端 未结 4 1490
旧巷少年郎
旧巷少年郎 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:21

    You can make it work by adding a wrapping div with overflow: auto; and -webkit-overflow-scrolling:touch;. Here's your example with it: http://jsfiddle.net/R3PKB/7/

    According to previous questions on SO it's a bug since iOS 4. I found more info here: https://stackoverflow.com/a/6721310/1047398 iframe on iOS (iPad) content cropping issue

提交回复
热议问题