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

WBOY
Release: 2016-06-24 11:48:31
Original
1069 people have browsed it

index.html:

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

con.html

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

ok.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template