简体   繁体   English

根据iframe中的内容调整iframe高度的大小

[英]Resize Iframe Height as per content with in the Iframe

默认为展开前展开时 so far what i research seems not be help. 到目前为止,我的研究似乎无济于事。 I am not jquery sabbie but it seems that it's not working. 我不是jquery sabbie,但似乎无法正常工作。 There are links within the iframe and once you click on each link, it expands and give you the content for that link. iframe中有链接,一旦您单击每个链接,它就会展开并为您提供该链接的内容。 well the iframe height does not move along with it. iframe高度不会随之移动。 here is my code. 这是我的代码。 Here is what is in the header. 这是标题中的内容。

<script type="text/javascript">$(document).ready(function () {$('iframe').iframeAutoHeight({debug: true});});</script>

body tag: 身体标签:

<iframe src="http://www.promero.com/defaultNewsTest.asp" class="auto-height"scrolling="no" frameborder="0"></iframe><script>$('iframe.auto-height').iframeAutoHeight({minHeight: 240});</script>

the site is http://promerostage.promero.com/ 该网站是http://promerostage.promero.com/

Take a look at the following article. 看看下面的文章。 I hope it will gonna resolve your issue as there is the solution in it, you seek for. 我希望它会解决您的问题,因为您正在寻找解决方案。

http://sonspring.com/journal/jquery-iframe-sizing http://sonspring.com/journal/jquery-iframe-sizing

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

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