Resizing an iframe based on content

后端 未结 21 2458
南方客
南方客 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:08

    When you want to zoom out a web page to fit it into the iframe size:

    1. You should resize the iframe to fit it with the content
    2. Then you should zoom out the whole iframe with the loaded web page content

    Here is an example: