http://qiaolevip.iteye.com/blog/2076034
最终解决方案:
iframe外层设置
$("#windowHeight").val($(window).height()-$(".header").height());
内层获取:
var windowHeight = parent.document.getElementById("windowHeight").value;