How to change height of iframe based on dynamic conent within the iframe?

后端 未结 5 1145
攒了一身酷
攒了一身酷 2021-02-03 15:07

I have an iframe that has dynamic content. If the answers specific questions, additional information displays (hidden div becomes visible). I\'d like the height of the iframe

5条回答
  •  旧时难觅i
    2021-02-03 15:27

    Check this one. You can get the iframe size using javascript itself.
    Using setInterval, check the window height each time.

    < iframe src='' frameborder='0' scrolling='no' id='frame_id' style='overflow:hidden; width:984px;' >
    
    
    
    

    Check this

提交回复
热议问题