Home >Web Front-end >HTML Tutorial >The iframe height is supported from the inside out_html/css_WEB-ITnose

The iframe height is supported from the inside out_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:48:311082browse

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