Home  >  Article  >  Web Front-end  >  iframe高度从内向外撑起_html/css_WEB-ITnose

iframe高度从内向外撑起_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:48:31983browse

index.html:

<div style="height: 200px;"></div><iframe id="gys" src="con.html" width="100%"></iframe>

 

con.html

<body onload="parent.window.document.all.gys.height=document.body.scrollHeight">        <div style="height: 1800px; width: 500px; margin: 0 auto; "></div>    </body>

 

ok了.

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