Created
November 26, 2012 05:05
-
-
Save libo1106/4146686 to your computer and use it in GitHub Desktop.
iframe子页面动态改变父页面iframe高度
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//调整iframe高度 | |
var height = $(document).height() + 'px'; | |
var iframe = parent.document.getElementById('main'); | |
iframe.style.height = height; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment