Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jQuery自动调整iframe页面高度
$(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