IFrame height issues on iOS (mobile safari)

前端 未结 3 696
温柔的废话
温柔的废话 2020-12-29 04:58

Example page source:




    
    

        
3条回答
  •  猫巷女王i
    2020-12-29 05:19

    I got the same issue. And after tried all solutions I could find, I finally found how to solve it.

    This issue is caused by the iOS Safari, it will auto-expend the hight of iframe to fit the page content inside.

    If you put the scrolling='no' attribute to the iframe as