<iframe src="" frameborder="0" style="overflow-y: auto; overflow-x:hidden;" onload="setIframeHeight(this);"></iframe>
function setIframeHeight(iframe) { if (iframe) { iframe.height = document.documentElement.clientHeight - 50; } };
JYuAn 2018-04-19 14:07 原文
<iframe src="" frameborder="0" style="overflow-y: auto; overflow-x:hidden;" onload="setIframeHeight(this);"></iframe>
function setIframeHeight(iframe) { if (iframe) { iframe.height = document.documentElement.clientHeight - 50; } };