How to implement an adaptive height of IFRAME (embedded frame)

xiaoxiao2021-03-06  37

Seek several times, I asked how to implement the IFRAME adaptive height, can automatically adapt to the length of the page to avoid the pages and iframes simultaneously, the phenomenon of the scroll bar, just I have encountered similar problems in the work, so I am online Turning, the east copy copy, getting such a function, it can be used in the page. Dare to enjoy exclusive, if you think it is useful, welcome to use

The source code is as follows