Home >Web Front-end >HTML Tutorial >Iframe自适应高宽_html/css_WEB-ITnose

Iframe自适应高宽_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 08:56:24962browse

很简短的代码:```        var ifm= document.getElementById("iframe_userCenter");	ifm.height=document.documentElement.clientHeight;	ifm.width=document.documentElement.clientWidth;```

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