Since colorbox will not know what is inside the iframe, auto-size cannot work as you expect.
I do it like this: set default width + height when opening colorbox with these options:
{ iframe: true, innerWidth: 430, innerHeight: 370, scrolling: false, ... }
, : colorbox iframe . iframe html script, iframe:
$(function(){
parent.$.colorbox.resize({
innerWidth:$('body').width(),
innerHeight:$('body').height()
});
});
script jQuery iframe. JavaScript.
, iframe /, . innerWidth/innerHeight .