admin管理员组文章数量:1435859
I am trying to embed an iframe containing a data visualization. I want the full contents of the graph to be visible on all device sizes (most of the utility comes from seeing the whole visualization). This would match the css property object-fit: contain
. For example the intended behavior can be seen here under the Try it heading.
What I am getting now is more like object-fit:fill with a scrollbar. I have tried adjusting the height and width of the iframe to be responsive, but that isnt affecting how the content inside is set within the iframe. How can I make the content scale to be fully fit within the iframe or a parent element so that the full visualization is visible independent of the screen size?
本文标签: htmlHow can I make an iframe39s contents match the behavior of css39s objectfitcontainStack Overflow
版权声明:本文标题:html - How can I make an iframe's contents match the behavior of css's object-fit:contain? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745667570a2669373.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论