iframe高度从内向外撑起
更新:HHH   时间:2023-1-7


index.html:

?

1
2
<div ></div>
<iframe id="gys" src="con.html" width="100%"></iframe>

 

con.html

?

1
2
3
<body onload="parent.window.document.all.gys.height=document.body.scrollHeight">
        <div ></div>
    </body>


返回开发技术教程...