How to make an iframe responsive without aspect ratio assumption?
问题 How to make an iframe responsive, without assuming an aspect ratio? For example, the content may have any width or height, which is unknown before rendering. Note, you can use Javascript. Example: <div id="iframe-container"> <iframe/> </div> Size this iframe-container so that contents of it barely fit inside without extra space, in other words, there is enough space for content so it can be shown without scrolling, but no excess space. Container wraps the iframe perfectly. This shows how to