【发布时间】:2014-06-26 19:11:06
【问题描述】:
实际上,我无法根据给定的 URL 设置动态高度。当时我正在使用下面的代码。
<iframe id="myframe" src="http://example.com" scrolling="yes" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:auto; width:100%; height: 100%;"></iframe>
如果可能的话,请给我建议任何解决方案。
【问题讨论】:
-
你不能根据动态url设置高度。
-
您可以在 iframe 内容加载时设置它。看我的回答here
标签: javascript php html iframe