简体   繁体   English

iframe动态高度调节

[英]iframe dynamic height adjust

I am trying to adjust the height of the iframe when a user checks an input box (the checked input box expands a list).当用户检查输入框(选中的输入框展开列表)时,我正在尝试调整 iframe 的高度。 I can not use ajax as a solution.我不能使用 ajax 作为解决方案。 This has to be done from the iframe and not the parent.这必须从 iframe 而不是父节点完成。

Within the iframe, you can call a function on the page hosting the iframe:在 iframe 中,您可以在托管 iframe 的页面上调用 function:

parent.adjustIFrameHeight();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM