iframe auto set height
Parent page:
document.domain = 'xxxx.com'
function fixIframeHeight(h,iframe){
$(iframe).height(h);
}
Iframe page:
document.domain = 'xxxx.com'
console.log('reset header iframe height!!');
window.onload = function(){
parent.fixIframeHeight(document.documentElement.scrollHeight,'#headeriframe');
}
window.onresize = function(){
parent.fixIframeHeight(document.documentElement.scrollHeight,'#headeriframe');
}