Home  >  Article  >  Web Front-end  >  Adjust the height of the iframe through the height of the page pointed to by ifame_form effects

Adjust the height of the iframe through the height of the page pointed to by ifame_form effects

WBOY
WBOYOriginal
2016-05-16 19:25:321100browse

Adjust the height of the iframe through the height of the page pointed to by ifame
1.htm code:


2.htm code:


<script> <BR>function resize() <BR>{parent.document.all.ifrm.height=document.body.scrollHeight; <BR>parent.document.all.ifrm.width=document.body.scrollWidth; <BR>} <BR></script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn