[code="javascript"]
$(".workPanel .tabs .tabs-content").append("
");
var iframe = document.getElementsByName("ifram")[0];
try{
var bHeight = iframe.contentWindow.document.body.scrollHeight;
var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
alert(bHeight+","+dHeight);
var height = Math.max(bHeight, dHeight);
iframe.height = height + 20;
}catch (ex){}
[/code]
请问我这么写有什么问题吗?