Resizing an iframe based on content

后端 未结 21 2559
南方客
南方客 2020-11-21 07:40

I am working on an iGoogle-like application. Content from other applications (on other domains) is shown using iframes.

How do I resize the iframes to fit the heigh

21条回答
  •  感情败类
    2020-11-21 08:01

    get iframe content height then give it to this iframe

     var iframes = document.getElementsByTagName("iframe");
     for(var i = 0, len = iframes.length; i

提交回复
热议问题