Resizing an iframe based on content

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

    This answer is only applicable for websites which uses Bootstrap. The responsive embed feature of the Bootstrap does the job. It is based on the width (not height) of the content.

    
    

    jsfiddle: http://jsfiddle.net/00qggsjj/2/

    http://getbootstrap.com/components/#responsive-embed

提交回复
热议问题