Last active
June 27, 2021 03:15
-
-
Save ifeiwu/370ea4bd0a5a8276d0b92c422a2634fe to your computer and use it in GitHub Desktop.
jQuery自动调整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
$(function() { | |
var height, _height; | |
setInterval(function(){ | |
height = $(document.body).height(); | |
if (height != _height){ | |
_height = height; | |
$(parent.document.body).find("#testifr").height(height); | |
} | |
}, 0); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment